Re: [css-d] embed CSS styles right within HTML page?
--- On Tue, 8/18/09, Ce Ce ceceli...@gmail.com wrote: How do you determine if it might be best to embed some styles right within the html page. Only if: a) The style is a completely unique, 'one-shot' affair with no potential for re-use b) Content is dynamically generated from a single source and, therefore, changing inline styles is just as easy as changing those in a stylesheet Even in those circumstances, unless there's a REALLY good reason, I tend to shy away from inline styles simply because they make the markup harder to read and increase its footprint. - Bobby __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] embed CSS styles right within HTML page?
I would say the only time I would embed a style sheet is if the site is one page only, or that style is specific to that page and no other page in the site. Otherwise, if you need to make a change, you have to go in and change each page. That costs your client money. It's the same reason I use server side includes for things that are the same on each page, like a header, navigation, footer, text-based links at the bottom of the page...especially navigation and text-based links, so if I add or remove a page, I change the navigation/links once and upload the file. Theresa On Aug 18, 2009, at 8:59 AM, Ce Ce wrote: Hi, I always code my CSS on a separate style sheet. But I've seen some beautiful/contemporary sites with some CSS embedded within the html page, with accompanying style sheets also. How do you determine if it might be best to embed some styles right within the html page. Thanks, CC __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] embed CSS styles right within HTML page?
Ce Ce wrote: How do you determine if it might be best to embed some styles right within the html page. No rules, but... Page specific styles (for this page only) may as well go in the page head, so as to avoid unnecessarily complex stylesheets with lots of one off stuff. Site wide / section wide styles (whatever gets reused often) belong in separate stylesheets. I often reflect where styles can be found in the ID/CLASS name, like having '.int05' for a class which styles is found in the page head. Makes debugging - and life as designer/coder in general - easier :-) regards Georg __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/