Current location: Hot Scripts Forums » General Web Coding » CSS » Exclude certain attributes


Exclude certain attributes

Reply
  #1 (permalink)  
Old 09-06-06, 10:44 PM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
Exclude certain attributes

I have one style sheet for an entire website. I want to include the sheet on all pages, but one page in particular I don't want to have a background color (the background color is set in body tag of css file). If it helps for understanding...the page I am referring to needs to essentially be transparent (except text) because of the background image on the page below.

Is there a way to include a stylesheet, but *exclude* certain tags? I tried adding 'style="background-color: "' to the body tag in hopes it would override the stylesheet, but it didn't work.

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-12-06, 01:42 PM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
Your best bet would be to "overwrite" the style in the one page you don't want it. Using an inline style should work. If you leave the declaration empty (you are using '') then the browser will likely read it as an error and ignore it. I think you want to use a transparent background...Try using

Code:
<body style="background-color:transparent;" ...>
Reply With Quote
  #3 (permalink)  
Old 09-12-06, 02:57 PM
omniman's Avatar
omniman omniman is offline
Coding Addict
 
Join Date: Aug 2006
Location: Baltimore, MD
Posts: 342
Thanks: 0
Thanked 1 Time in 1 Post
Thank you, I got it the other day.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IMG attributes in CSS abbulix CSS 3 05-24-06 05:06 PM
What some attributes do El Barto HTML/XHTML/XML 9 01-10-05 01:13 PM
Can PHP place quotes around HTML attributes frdmsun PHP 1 08-17-04 02:12 AM
Modifying style attributes andreasberglind ASP.NET 0 02-27-04 12:00 PM
vbscript for modifying values in attributes in Session tab of a user in AD W2K-serv Kjell Script Requests 0 01-28-04 08:04 AM


All times are GMT -5. The time now is 01:53 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.