Solved

css

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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 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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 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

21 Experts available now in Live!

Get 1:1 Help Now