Table of Contents
What is Cascading Style Sheets
(CSS)?
CSS is a style sheet language used for describing the presentation of a document written in a markup language. A style sheet is a collection of rules that tells a web browser how to display a document written in HTML or XML.
Framework for CSS
Grid
Grid is designed to create responsive layouts with simple code. It uses a combination of columns and rows to create a flexible grid.
To create a grid, use the grid() function. The grid() function takes two parameters: the number of columns and the number of rows.
grid(12, 4)
This will create a grid with 12 columns and 4 rows.
You can also use the grid-template-columns and grid-template-rows properties to create a grid.
grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(4, 1fr);
This will create the same grid as the grid() function.
Advantages of CSS
CSS is simple and concise.
CSS is easy to learn.
CSS is widely supported by browsers.
CSS can be used to style all HTML tags.
CSS can be used to style page content.
CSS can be used to create responsive designs.
CSS is browser-independent.
CSS can be used to create reusable style sheets.
disadvantages of CSS
CSS can be difficult to learn and use.