|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
I like monkeys
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. |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
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.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|