0% found this document useful (0 votes)
2 views

CSS_Cheat_Sheet

This document is a CSS cheat sheet that lists various selectors and properties used in CSS. It categorizes selectors and text properties, as well as background properties, providing their usage. Each entry includes the property or selector and a brief description of its function.

Uploaded by

t24026463
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

CSS_Cheat_Sheet

This document is a CSS cheat sheet that lists various selectors and properties used in CSS. It categorizes selectors and text properties, as well as background properties, providing their usage. Each entry includes the property or selector and a brief description of its function.

Uploaded by

t24026463
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CSS CHEAT SHEET

Category Property / Selector Usage

Selector * Selects all elements

Selector .class Selects elements with a class

Selector #id Selects an element with a specific ID

Selector element, element Groups multiple elements

Selector element > element Selects direct children

Selector element + element Selects adjacent siblings

Text color Sets the text color

Text text-align Aligns text (left, center, right)

Text text-decoration Adds underline, overline, etc.

Text text-transform Changes text case

Text line-height Sets space between lines

Background background-color Sets background color

Background background-image Sets background image

Background background-size Scales image (cover, contain)

Background background-position Positions background image

Background background-repeat Sets repeat behavior

You might also like