CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 9th, 2004, 10:47 AM
snkhan snkhan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Leicester, england
Posts: 133 snkhan User rank is Corporal (100 - 500 Reputation Level)snkhan User rank is Corporal (100 - 500 Reputation Level)snkhan User rank is Corporal (100 - 500 Reputation Level)snkhan User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 8 h 32 m 2 sec
Reputation Power: 7
Send a message via ICQ to snkhan Send a message via AIM to snkhan
Question Disable css class

Hi there,

In my stylesheet I've written a style for the table tag:

Code:
table {
	width: 500px;
	margin: auto;
	text-align: left;
	border: 1px solid #999999;
	font-family: "Trebuchet MS", "Bitstream Vera Sans", verdana, lucida, arial, helvetica, sans-serif;
	line-height: 140%;
	margin-bottom: 10px;
	padding-bottom: 15px;
	font-size: 14px;
	padding-left: 10px;
}


All the main tables on my site need to be this exact style. I now need to create a table which shouldn't use the table style above. I could have just pasted the stylesheet info directly to the page (and delete the css link at the top of the page), and then delete the table info, but can't do this because the stylesheet link location is dynamic (my new site design will alternate a stylesheet every 24 hours).

Anyone know how I can tell the css to not apply the style to an element?

Thanks,


saj
__________________
www.snkhan.co.uk
see life in colour >>>

Reply With Quote
  #2  
Old June 9th, 2004, 11:37 AM
snkhan snkhan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Leicester, england
Posts: 133 snkhan User rank is Corporal (100 - 500 Reputation Level)snkhan User rank is Corporal (100 - 500 Reputation Level)snkhan User rank is Corporal (100 - 500 Reputation Level)snkhan User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 8 h 32 m 2 sec
Reputation Power: 7
Send a message via ICQ to snkhan Send a message via AIM to snkhan
Don't worry, managed to solve it by creating a new class and specifying this in the 'excluded' table.

Reply With Quote
  #3  
Old June 11th, 2004, 12:58 AM
jackass's Avatar
jackass jackass is offline
Don't Panic
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Northern CA
Posts: 483 jackass User rank is Sergeant (500 - 2000 Reputation Level)jackass User rank is Sergeant (500 - 2000 Reputation Level)jackass User rank is Sergeant (500 - 2000 Reputation Level)jackass User rank is Sergeant (500 - 2000 Reputation Level)jackass User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 h 22 m 26 sec
Reputation Power: 11
Send a message via AIM to jackass Send a message via Yahoo to jackass
Yeah and you could make generic classes and name any tag element that class by using .class or whatever
__________________
It's not that I don't know how to do it, I just haven't learned it yet.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Disable css class


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT