Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frame inside a frame CSS broder question

Status
Not open for further replies.
Joined
Jun 9, 2004
Messages
188
Location
US
Hello I have a css with the following:

table.main{
border: 1;
border-collapse: collapse;
color: #000000;
}

and the html as the following:

<table width="550" cellspacing="0" cellpadding="0" class="main">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td test</td>
<td test</td>
</tr>
</table>
</td>
</tr>
</table>


Why does the inner table have a border around it even though I did not specify a class. How do I keep the tables seperate using different classes.

Thanks.


 
Sorry meant to type table inside a table as the topic title.
 
Instead of saying border="0", why not give it its own class like noborder and specifying in css that there is to be no border?
 
ok i'll try that. but i dont want to have to do it to all tables. pain in the ass.
 
Try something like this:

Code:
table.main {
    border: 1px solid black;
    border-collapse: collapse;
    color: #000000;
}

table {
    border: none;
}

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top