Solved

css

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

Suggested Solutions

Title # Comments Views Activity
Button on Table, name table1 not working 4 34
Non-Resizable Pharagraph 2 19
Link not working 6 42
Accordion won't close correctly 5 14
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

733 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