css INTRO
css INTRO
CSS (Cascading Style Sheets) is a language used to style HTML content. It controls the layout,
colors, fonts, spacing, and more, enhancing the presentation of web pages.
Syntax
css
selector {
property: value;
For example:
css
p{
color: blue;
font-size: 16px;
Selectors
1
ID Selector: # selects an element by ID (e.g., #id-name).
Descendant Selector: Selects elements within another element (e.g., div p).
Common Properties
Text Styling:
Box Model:
2
Background:
Positioning:
top, left, right, bottom: Sets the element's position relative to its container.
Responsive Design
css
body {
font-size: 14px;