|
-
Tiger Shark
CSS double classing tables?
Can I do something like this?
table.top { background: black; color: white; width: 150px }
table.leftside { background: green; color: blue; width: 300px }
and then call:
<table class = "top"><tr><td>asdf</td></tr></table>
and
<table class = "leftside"><tr><td>asdf</td></tr></table>
and have them with their attributes?
Oh and another thing. I keep trying to change border thickness and color but it doesn't seem to want to work. I go like this:
table { border: 2px; border-color: white }
But nothing happeneds. Thanks in advance.
-andy
AMD 1600+ @ 1.90ghz - Mushkin PC2100 CAS2 KR7A-RAID Mobo - Geforce III Ti200
75GB WD and 30GB Maxtor (both 7200RPM)
Two smart fan 2 & two generic 80MM fans
19' flat screen
52x cd rom - 12x Burner floppy - Tape, bolts, clench grip
and most importantely..your mom
IM PART OF THE COOLERS GUILD, I HAD NO IDEA! 
-
Ursus Arctos Moderatis
You can create classes that you can apply to most anything using the following syntax:
Code:
.myClassName { color: #003399; }
You could then have:
<h2 class="myClassName">asd</h2>
or...
<td class="myClassName">
etc etc...
Concerning table borders, this resource should help you out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|