Solved

All tables white background - except a few - css

Posted on 2007-11-18
2
373 Views
Last Modified: 2008-02-01
I'd like to set all my table backgrounds to white in css -- but then define just a few tables to NOT use the white the background.

So in css file:
table {background-color:  #FFFFFF;}

Then for the tables I don't want to be white?
.tablewithoutwhitebackground {???}

I'm trying to avoid having to set every singe table with bgcolor within EACH page.  I also don't want to use a div or a style or a span on each page for those tables I want white.

I know how to set table background to a color using CSS - but not how to make it use a different style that the table {xxx} style.

Is there a css style tag to NOT set a background color?  

Know what I mean?

Thanks, April

0
Comment
Question by:aprillougheed
2 Comments
 
LVL 3

Accepted Solution

by:
Mr_Splash earned 500 total points
ID: 20309901
Quite simple to do

.tablewithoutwhitebackground {background: transparent;}
0
 

Author Comment

by:aprillougheed
ID: 20311529
Yes - that's what I needed.  thanks so much.  April
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now