Better HN
topnewbestaskshowjobs
Log inSign up

stalemath

1 karma · joined Mar 28, 2011 (15y ago) · 1 submissions

Web developer, designer, and programmer. Constantly learning new languages/technologies.

Preferences: XHTML, CSS, JavaScript, PHP, MySQL, Apache, Linux, UNIX, Coda (software)

Submissions

comment 15y ago · link · parent

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))