PDA

View Full Version : css help



shevi2027
02-08-2006, 12:51 PM
Hello

Mz Style sheet


.tablestyle
{
border-color:#000000;
border-style:solid;
border-width:thin;
}


My html page


<link rel='STYLESHEET' type='text/css' href='mystyle.css'>


Inside my HTML page i have alot of tables.. Is there a way i can use my style sheet without adding the class to every single table??

Thank you.

Twey
02-08-2006, 03:18 PM
Is there a way i can use my style sheet without adding the class to every single table??You want to apply this to every table?
table
{
border-color:#000000;
border-style:solid;
border-width:thin;
}

shevi2027
02-10-2006, 10:57 AM
You want to apply this to every table?
table
{
border-color:#000000;
border-style:solid;
border-width:thin;
}

yes...

but i don't want to add the tag (in red) to the tables.



<table>
<tr>
<td class="tablestyle">
....
</td>
</tr>
</table>


Is there any way ???

Twey
02-10-2006, 03:06 PM
Yes, and I just gave you CSS to do exactly that :) I noticed you applied the class to the TD, not the table, in your example. If this is what you want, replace "table" with "td" in my code.

shevi2027
02-11-2006, 03:03 PM
Ohhh thanks..I didn't understand it b4 ^^