Solved

css

Posted on 2000-03-30
3
143 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
Comment Utility
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
Comment Utility
<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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Image not there 4 32
Ajax control editor 4 30
Paper tearing animation 6 38
Image decoding from Camera 3 42
This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

763 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

10 Experts available now in Live!

Get 1:1 Help Now