?
Solved

borders around multiple tables

Posted on 2003-10-29
5
Medium Priority
?
1,836 Views
Last Modified: 2010-04-09
i have a webpage im working on with tables.

i cant figure out how to boarder the tables.

while each table has its own cellspacing, cellpadding, and border settings, how do i place a border around them all, enclosing ALL of the below tables with one border ... example below:



--->>  wanting border around all of this below,  starting here in the script  <<---

<table width=100% cellspacing=0 cellpadding=0 border=0 bordercolor=gray>
<tr>
<td width="100%"><font class=peq color=eeeeee><CENTER>Main Heading<CENTER></font></td>
</tr>
</table>

<table width=100% cellspacing=0 cellpadding=0 border=1 bordercolor=gray>
<tr>
<td width="100%"><font class=peq color=eeeeee><CENTER>sub heading<CENTER></font></td>
</tr>
</table>

<table width=100% cellspacing=0 cellpadding=0 border=0>
<tr>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
</tr>
</table>

<table width=100% cellspacing=0 cellpadding=0 border=0>
<tr>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
</tr>
</table>

<table width=100% cellspacing=0 cellpadding=1 border=0>
<tr>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
</tr>
</table>

<table width=100% cellspacing=0 cellpadding=1 border=0>
<tr>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
<td width="20%" valign=top bgcolor="000000"><font class=peq><a href="http://web-site.com/"><center>link text</a></center></font></td>
</tr>
</table>

--->>  wanting boarder around the above, ending here  <<---


took me forever to figure all this out and code it to look like it does, but jsut cant figure this out !

thanks in advance !!!!!!

i love you guys !!!!!!!!
0
Comment
Question by:sanctify
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:DoppyNL
ID: 9641475
put a table (or div-block) around all those tables and assign the border you want to that.
0
 
LVL 31

Accepted Solution

by:
seanpowell earned 160 total points
ID: 9641547
I would simplify your structure with CSS, and use a div for your border. I'm not sure what you're doing with the peq style, but you can incorporate it easily enough...


<html>
<head>
<title>Table Border</title>
<style type="text/css">
<!--
table      { width:100%; }
td.peq     { background-color:#000000; text-align:center; width:20%; }
td.heading { color:#EEEEEE; text-align:center; width:100%; }
//-->
</style>
</head>
<body>
<div style="border: 1px solid #FF0000;">
<table cellspacing="0" cellpadding="0" border="0" bordercolor="gray">
<tr>
<td class="heading">Main Heading</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="1" bordercolor="gray">
<tr>
<td class="heading">sub heading</td>
</tr>
</table>
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
</tr>
</table>
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
</tr>
</table>
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
</tr>
</table>
<table cellspacing="0" cellpadding="1" border="0">
<tr>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
<td valign=top class="peq"><a href="http://web-site.com/">link text</a></td>
</tr>
</table>
</div>
</body>
</html>
0
 
LVL 1

Author Comment

by:sanctify
ID: 9641959
woooho you rock !!!!!!!!!!!!!!!!!!!

the peq is test styling by the way.

i am kinda new to html ...so its slow going ...took long time to get that as it was LOL

THANKS !!!!!!!!!!!!!!!!!!!!!!
0
 
LVL 1

Author Comment

by:sanctify
ID: 9641980
test=text ... typo =]
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9641983
No problem - and best of luck!
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

743 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