This page provides an overview of CSS properties and their usage. CSS (Cascading Style Sheets) is a language used to describe the presentation of a document written in HTML or XML.
Common CSS Properties
- Color:
color
property is used to set the text color.- Example:
color: red;
- Example:
- Font:
font-family
,font-size
,font-weight
are used to style the text.- Example:
font-family: Arial, sans-serif; font-size: 16px; font-weight: bold;
- Example:
- Background:
background-color
,background-image
are used to set the background.- Example:
background-color: #f0f0f0; background-image: url('background.jpg');
- Example:
- Box Model:
margin
,padding
,border
,width
,height
are used to control the layout.- Example:
margin: 10px; padding: 20px; border: 1px solid #000; width: 100px; height: 100px;
- Example:
Useful Resources
For more detailed information about CSS properties, you can visit our comprehensive CSS Properties Documentation.
CSS Properties