CSS: Cascading Style Sheets Guide
Prepared by: Aman Sah | Roll No: 24/SE/026
1. Introduction to CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation
of a document written in HTML. CSS is a cornerstone technology of the World Wide Web,
alongside HTML and JavaScript, separating content from visual design.
2. Layout Systems: Flexbox & Grid
Modern CSS provides powerful tools for creating complex, responsive layouts without relying
on floats or positioning hacks:
• Flexbox: Designed for one-dimensional layouts (either a row or a column). It excels at
distributing space and aligning items within a container.
• CSS Grid: Designed for two-dimensional layouts (rows and columns simultaneously). It
provides a grid-based layout system, offering fine-grained control over page structure.
3. Responsive Web Design
Using media queries (@media), CSS can adapt the layout to different viewing
environments, such as smartphones, tablets, and desktop monitors, ensuring a
seamless user experience across all devices.