[WSG] {Spam?} stupid question
Hi, Would someone explain the how and why of using/importing two style sheets into a page. Example below. {!-- @import /c/wamu.css; @import /c/dr.css; --} thanks. kevin. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] {Spam?} stupid question
Kvnmcwebn wrote: Would someone explain the how and why of using/importing two style sheets into a page. a) easier to organise your styles into separate, distinct css files (e.g. one with all the colour definitions, another for the layout, etc) b) hiding styles from browsers which do not understand @import statements (e.g. Netscape 4.x) -- Patrick H. Lauke _ re·dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] {Spam?} stupid question
Thanks-it makes sense- It would be smart to break large style sheets down into managable chunks. I see a lot of high traffic sites that only use the @import method that would not work well unstyled. Is this acceptable yet? -Kevin ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] {Spam?} stupid question
On Sat, 26 Mar 2005 05:45:43 +, Kvnmcwebn [EMAIL PROTECTED] wrote: I see a lot of high traffic sites that only use the @import method that would not work well unstyled. Is this acceptable yet? Well, if you mean that using @import excludes some browsers: it is acceptable. If you consider that most of your styling won't even work in the browsers that don't @import, then you're better off. The average CSS styled website won't work well in NS4, IE4 and all those, if you know what I mean. They don't even support it correctly. So acceptable? It's the better thing to do. Cause you gotta know this: content is better for them than a heavily broken layout. -- Cheers, Rob. http://zooibaai.nl | http://digital-proof.org | http://chancecube.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] {Spam?} stupid question
Just to elaborate, you might have one stylesheet named site.css with site-wide styles, such as banners, link-styles, headers, etc. Then you might have another stylesheet called forum.css for your message boards, and another called products.css for a page with pictures of products, etc. This way, the styles in site.css aren't in every single css file, saving space. Also saves loading time, because in the products page you probably wont need the forums styles... - Original Message - From: Patrick H. Lauke [EMAIL PROTECTED] To: wsg@webstandardsgroup.org Sent: Saturday, March 26, 2005 10:57 AM Subject: Re: [WSG] {Spam?} stupid question Kvnmcwebn wrote: Would someone explain the how and why of using/importing two style sheets into a page. a) easier to organise your styles into separate, distinct css files (e.g. one with all the colour definitions, another for the layout, etc) b) hiding styles from browsers which do not understand @import statements (e.g. Netscape 4.x) -- Patrick H. Lauke _ re·dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] {Spam?} stupid question
ahh a site wide style sheet and then individual page style sheets-thats very helpful- im glad i asked. Also i like the idea of not spending time on a half arsed style sheet for 4.0th generation browsers, just give them the content eh. thanks guys -Kevin ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **