Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: not2easy
text-shadow: 1px 1px 1px black;
-moz-box-shadow: 3px 3px 3px #888;
-webkit-box-shadow: 3px 3px 3px #888;
box-shadow: 3px 3px 3px #888;
It isn't always easy to decide where to put certain style declarations. Fonts and sizes clearly belong in the typography.css file. But what about margins and padding? It's hard to say whether they are part of the layout or should be considered typographical information. Here [in his book] the padding information is in layout.css... Margins are applied in typography.css.
Three files means 3 HTTP requests which potentially slows things down.
<link rel="stylesheet" type="text/css" href="styles/prime.css">
You would need to use PHP or some other server-side script to combine the files (and perhaps minify, gzip and cache it).
...highlights the difference between focussing on the form of the code, not the function it is supposed to perform.
[edited by: alt131 at 11:39 pm (utc) on Jan 6, 2012]
[edit reason] Thread Tidy [/edit]
I'm still asking novice questions partly because I'm sitting at home in my jamjams and not in a production environment where I could just nudge an answer from a mentor.Ok, sans** the coding apparel I don't think your questions are novice ones - and that's because you are putting such effort into thinking about things. And remember the forum exists to ask questions. The WebmasterWorld mission statement is on the about [webmasterworld.com] page and I think the last sentence is important for the many members who are also working solo:
Think of us as part of your extended site development and process team.