Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

All tables white background - except a few - css

Posted on 2007-11-18
2
Medium Priority
?
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
Mr_Splash earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Suggested Courses

721 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