Solved

css

Posted on 2000-03-30
3
157 Views
Last Modified: 2010-04-09
let's assume i have 2 tables.
i want that one will be with black background and the other
will be with orange background.
so...
<style>
table{background:black};
table{background:orange};
</style>
how can i make the orange table to be unique?

<body>
<table><tr><td>hellow-black</tr></td></table>
<br><br>
<table><tr><td>hellow-orange</tr></td></table>
0
Comment
Question by:eladr
[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
3 Comments
 
LVL 3

Expert Comment

by:MHQ
ID: 2668973
just one point awarded for the answer? That's pretty cheap...

And what do you mean with unique?

This sets the bgcolors of the tables.

<body>
<table bgcolor=black><tr><td>hellow-black</tr></td></table>
<br><br>
<table bgcolor=navy><tr><td>hellow-orange</tr></td></table>


0
 
LVL 1

Accepted Solution

by:
Gnissman earned 1 total points
ID: 2669054
<style>
table.b{background:black};
table.o{background:orange};
</style>
<body>
<table class="b"><tr><td>hellow-black</tr></td></table>
<br><br>
<table class="o"><tr><td>hellow-orange</tr></td></table>

0
 
LVL 1

Expert Comment

by:choroque
ID: 2671524
give a different id to the tables:

<body>
<table id="b"><tr><td>hellow-black</tr></td></table>
<br><br>
<table id="o"><tr><td>hellow-orange</tr></td></table>
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

707 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