3 ms·
I usually include comments where necessary before a section, so in a file named global.css, I may have: /* header / .header { margin: 0 auto; padding:
by stalemath 16y ago
I usually include comments where necessary before a section, so in a file named global.css, I may have:
/* header /
.header {
margin: 0 auto;
padding: 0;
width: 800px;
}
/ body /
.body {
margin: 0 auto;
padding: 10px;
width: 800px;
background-color: #fff;
}
/ footer */
.footer {
margin: 0 auto;
padding: 10px;
background-color: #EEE;
border-top: 1px solid #BBB;
}
(this is just an example, assume the classes are for div's)
If I have multiple CSS files, I may just call one (style.css) in the <head> of HTML document. Then within the style.css, I can just make a list of the documents using @import.
((by the way, this didn't come out the way I expected on here))