|
| |
|
|
Mick Dugan
Posts: 26 Joined: 7/26/2003 Status: offline
|
Disable CSS on Certain Pages - 3/10/2007 8:26:28
Hi All, I'm using CSS to display my logo on the top of each page, but there are some pages where I'd prefer not to display it at all. Is there a way to do this, or is this an "all or nothing" situation?
|
|
|
|
jurgen
Posts: 385 Joined: 1/9/2007 From: Castle Rock, Colorado Status: offline
|
RE: Disable CSS on Certain Pages - 3/10/2007 9:26:39
You could split your style sheet and make 2 css files. One "main.css" and one "logo.css". When you want to show the logo just link both files in your header. Otherwise leave it out.
|
|
|
|
Tailslide
Posts: 6050 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: Disable CSS on Certain Pages - 3/10/2007 10:29:01
Might be easier to give your logo a class such as "noshow" on the pages you don't want it seen on then add a rule to the stylesheet: img.noshow {display:none;} If you remove the stylesheet from the page all together you'll lose the rules for the rest of the page.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|