CSS ARTICLE
History of CSS
CSS (Cascading Style Sheets) was first proposed by Håkon Wium Lie on October 10, 1994 while working with Tim Berners-Lee at CERN and the rest is history. CSS was not the only styling language in development at the time,but the veryelement of cascading and developing sequence is what set it apart from the rest
CSS Introduction
What is CSS?
- CSS stands for Cascading Style Sheets
- CSS describes how HTML elements are to be displayed on screen, paper, or in other media
- CSS saves a lot of work. It can control the layout of multiple web pages all at once
- External stylesheets are stored in CSS files
CSS Variables
- The var() function is used to insert the value of a CSS variable.
- A good way to use CSS variables is when it comes to the colors of your design. Instead of copy and paste the same colors over and over again, you can place them in variables.
Example
body{ background-color: #1e90ff;}
h2 { border-bottom: 2px solid #1e90ff; }
.container {
color: #1e90ff;
background-color: #ffffff;
padding: 15px;
}
button {
background-color: #ffffff;
color: #1e90ff;
border: 1px solid #1e90ff;
padding: 5px;
}
CSS Syntax
p {
color: red;
text-align: center;
}