Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-03-2009, 07:50 PM   #1
I like monkeys
 
tomster2300's Avatar
 
Join Date: Jul 2003
Location: The South
Posts: 2,512
Multiple CSS sheets

I am including a jquery script to one of my pages and it includes its own style sheet (actually it's in the html header, but I'm separating it for my own sanity's sake). I would just link it, but the problem is it assigns different values to tags I've already used, and it's going to be a pain in the butt to go through and changes all the names. Is there any way to link to the sheet and in my html say only "x" divs follow the second style sheet and ignore the main one?

Thanks.
__________________
Desktop 1: Intel i7 920--GA-x58-UD3R--Corsair xMS3 6GB (3 X 2GB) DDR3 1333mhz--Sapphire HD 4870 1GB--PC Power & Cooling Silencer 750w psu--WD SATA 3.0 gb/s 320 GB HD--Lite-on DVD-DL burner--Thermaltake SopranoRS black case--Windows 7 Professional 64-bit

Desktop 2: Intel C2D E4400--GA-P35-DS3R--Corsair xMS2 2GB (2 X 1 GB) DDR2 800--eVGA 8600 GT--Fortron Source 500 watt psu--WD 250 gb HD--HP DVD-DL burner--Windows Vista Home Premium

Laptop: Apple Macbook

Last edited by tomster2300; 06-03-2009 at 09:40 PM.
tomster2300 is offline   Reply With Quote
Old 06-03-2009, 11:37 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Nope. The main reason for seperating out CSS files is for easier code maintainability. Otherwise, everything you have in those files will be applied.

(for example, a sheet for the reset, a sheet for layout, and a sheet for eye candy)

The other reason is for IE compatability. Sometimes IE needs its own special CSS, so IE-specific CSS is included as seperate files within conditional statements.


What you can do is with your editor do a "replace all" when renaming things. Be careful that if you try to rename a shorter name, that it doesn't also appear as part of a larger name elsewhere.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2