Giới thiệu
CSS (Cascading Style Sheets) kiểm soát giao diện và bố cục của trang web. CSS hoạt động bằng cách chọn các phần tử HTML và áp dụng các thuộc tính trực quan lên chúng.
Phần này bao gồm toàn bộ CSS hiện đại — từ selectors, box model, typography đến Flexbox, Grid, animations và CSS custom properties.
Nội dung
| Bài | Chủ đề |
|---|---|
| CSS Selectors | Selector cơ bản, tổ hợp, pseudo-class, độ ưu tiên |
| Box Model | Content, padding, border, margin, box-sizing |
| Typography | Font, cỡ chữ, dòng, khoảng cách, web fonts |
| Màu sắc & Nền | Color functions, gradient, background |
| Display & Visibility | block, inline, inline-block, overflow |
| Position | static, relative, absolute, fixed, sticky |
| Flexbox | Container và item properties, responsive |
| CSS Grid | Grid lines, areas, template, auto-fill |
| Responsive Design | Media queries, mobile-first, breakpoints |
| Transitions & Animations | transition, @keyframes, transform |
| CSS Variables | Custom properties, theming, scope |
| Pseudo-classes & Elements | :hover, :nth-child, ::before, ::after |
Bình luận