Your Opinion's Please...

I was just thinking about some things and I was wonder what do y'all recommend for using CSS. I use a combination of linking the stylesheet and put the page specific stuff in the <head>. I have seen some places that use external files exclusively as well as the way I do it. Of course my favorite is FrontPage users (mostly) who have all their CSS styles in the <head> kind of defeats the ease of adjusting your styles if you ask me. Anyway what do you think is the best way to apply your styles?When designing a site, and the CSS has been finalized I'll stick it into an external file for ease of modification and bandwith reduction. That said, sometimes certain pages have CSS that's only required for that one page, or perhaps need a change just for that one page, in which case I'll use the Head. Also, if say I have one element I want to change, I find myself using the style attribute as well. I use a fair mix, but the vast chunk is in an external file.I put the styles where they belong by scope. Site-wide, external; page-specific, imbedded; special element, inline.Originally posted by ray326
I put the styles where they belong by scope. Site-wide, external; page-specific, imbedded; special element, inline.
Ditto (tending to err toward the broader implementation when not sure).Many external sheets, some internal sheets, and some inline styling.Originally posted by MstrBob
When designing a site, and the CSS has been finalized I'll stick it into an external file for ease of modification and bandwith reduction. That said, sometimes certain pages have CSS that's only required for that one page, or perhaps need a change just for that one page, in which case I'll use the Head. Also, if say I have one element I want to change, I find myself using the style attribute as well. I use a fair mix, but the vast chunk is in an external file.

Cool man that is pretty much what I do. That seemed like the most logical way to go about it in my head.

Thanks for the replies y'all! :DExternal, except for extreme circumstances.Originally posted by ray326
I put the styles where they belong by scope. Site-wide, external; page-specific, imbedded; special element, inline.

Oh, <duhhh!> again! I had an intuition for that sort of practice, yet my disorientation was so severe that I couldn't follow up on it. Now is the greatest time for me, as I'm editing all my pages anyway - I have a few that could use the style declarations in the page head, and rarely, one that needs something in the body (specific to that page).

Sometimes I think maybe you guys don't know how very much you teach us newbies with your remarks.

Mon, 31 Jan 2005 09:37:36I usually use external, but sometimes I have to use inline.Sometimes I think maybe you guys don't know how very much you teach us newbies with your remarks. A lot of us are programmers and there are many Ah-Ha! moments in a programmer's life. I.e. it isn't just newbies that learn from this interaction AND it isn't always inexperience learning from experience either.Originally posted by ray326
A lot of us are programmers and there are many Ah-Ha! moments in a programmer's life. I.e. it isn't just newbies that learn from this interaction AND it isn't always inexperience learning from experience either. True...true. :)
 
Back
Top