Solved

css

Posted on 2000-03-30
3
148 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

765 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