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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table borders 1

Status
Not open for further replies.

blues77

Programmer
Jun 11, 2002
230
CA
I need a way of diplaying just the outer border of a table and not the borders of each individual cell in the table. I was trying the frame attribute but so far i haven't had any success. I'm trying to specify the table definition in a CSS. here is what i have so far.


table {
width=701;
border=2;
frame=border;
rules=none;
cellspacing="4";
cellpadding="2"
}

any help would be greatly appreciated.

thanks
 
First, I'd recommend you use this page as your Bible for CSS:
This will ensure that you have fully compliant CSS code.

Here is my interpretation of what you want (with CSS corrections).
Code:
table { width: 701px; border-width: 2px; border-style: outset; padding: 2px; }
th { border: 0; padding: 2px; }
td { border: 0; padding: 2px; }

Try that out. :)
 
I always just use a nested table for this.  I give the outer table a 1px cellpadding and a bgcolor.  The inner table is where I build my content in.

<table width=&quot;602&quot; border=&quot;0&quot; cellpadding=&quot;1&quot; cellspacing=&quot;0&quot;>
<td bgcolor=&quot;000000&quot; valign=&quot;top&quot;>

<table width=&quot;600&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<td bgcolor=&quot;ffffff&quot; valign=&quot;top&quot;>

INSERT CONTENT HERE

</td>
</table>

</td>
</table>
-----------------------------------------------
These are endless galaxies which are yours.
You can journey to infinity
through the endless passages of the cosmos.
Even better. This all belongs to you.
This is your mind.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top