This is a discussion on "How to add multiple style files" within the Web Page Design section. This forum, and the thread "How to add multiple style files are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
How to add multiple style files
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
How to add multiple style files
Is it possible to have a stylesheet for IE and firefox differently? Maybe the firefox one to be the default then IE should choose the one for its own
|
|
|
|
||||
|
Re: How to add multiple style files
Yep, its a hack using something called conditional comments.
Check out this mini explanation from Januarys edition of Webforumz own Crative Coding Newsletter http://creativecoding.webforumz.com/...8/january/faq/
__________________
http://www.topwebdesigner.co.uk | http://www.backfromthedepths.co.uk | http://www.topwiigames.co.uk |
|
|||
|
Re: How to add multiple style files
I'd use a JavaScript sniffer as you can push to specific O/S, browsers and versions:
http://www.webreference.com/tools/br...avascript.html |
|
||||
|
Re: How to add multiple style files
Imagn - but then if the browser has javascript happens then what? If CSS (which is always on) can do the same job javascript can do (which is not always on) why use Javascript and risk it?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: How to add multiple style files
Quote:
a) It's client-side. If the user has it disabled, the sniffer will fail and you will not have control (as Jack mentioned) b) It's poor coding Any site can be designed to be browser-compatible, with perhaps a few browser specific hacks if neccessary (see dangergeek's link for serving stylesheets to IE) Best advice - design for Firefox, then fix IE with conditional comments. Browsers such as Opera and Safari will (usually) follow suit
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
|||
|
Re: How to add multiple style files
Yes and what happens when they don't follow suit? Just tell the client "Oh, well"?
While I'd agree a vast majority of the time yes, we've had a instances where just using hacks did not cover minor spacing variations across MAC FireFox 1.5 & 2, Opera and Safari and PC IE 6 & 7 and FireFox 1.5 & 2. The default response is always "What if JS is turned off" but that argument doesn't hold much water anymore as an overwhelming percentage of browsers do. Regardless this was another option that some people might discover they need to do. Perhaps I misspoke and should have worded as "Another possibility is..." Last edited by imagn; Feb 21st, 2008 at 19:05. |
|
||||
|
Re: How to add multiple style files
imagn - if you can code well then you do not need to use the Javascript.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: How to add multiple style files
Well Jack maybe when you get into some more advanced projects you'll have the opportunity to see why you might need it.
And since the point of the forum is to give people with less knowledge and experience some advice and pointers I thought it would be useful. |
|
||||
|
Re: How to add multiple style files
I've done quite a few designs and never used it. If you have and want to use it, thats fine.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: How to add multiple style files
I have used the CSS and its working fine. If you visit here you might notice the difference. (not on the logo)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multiple rollover images change multiple images | joshlindem | Web Page Design | 4 | Apr 18th, 2008 09:11 |
| Can multiple domain names point to the same HTML files? | classic123 | Web Page Design | 3 | Oct 30th, 2007 15:33 |
| How to tell IE7 to use a pariticular style in a single style sheet | figo2476 | Web Page Design | 5 | May 25th, 2007 14:23 |
| uploading multiple files path in the database | franknu | PHP Forum | 4 | Jan 23rd, 2007 15:37 |