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

can't seem to get this template to seat right...always moves on page..

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034
here's my code:

Code:
<html>
<head>
<style>
html {height:100%;margin-bottom:0px;}body {margin:0px;background-color:#FFFFFF;font-family:Arial;font-size: 70%;color:#333333;}
</style>
<title></title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<meta name='Keywords' content=''><meta name='Description' content=''>
<meta http-equiv='imagetoolbar' content='no'>
</head>
<body>
<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" align="center" bgcolor="333333">
<tr><td><img src=img/spc.gif width=1 height=2 alt=''></td></tr>
<tr><td class=leftBar><img src=img/spc.gif width=1 height=250 alt=''></td>
<td valign=top width=670 style="background-image: url('');" bgcolor=ffffff>
<table cellspacing=0 cellpadding=0 align=center width=100%>
<tr>
<td width=100% bgcolor=red><img src=img/spc.gif width=1 height=50 alt=''></td>
</tr>
<tr>
<td align=center bgcolor=c1c1c1><img src=img/spc.gif width=1 height=1 alt=''></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width=100%>
<tr valign=top>
<td style='padding-left:10;padding-right:10;'>
<table cellspacing=0 cellpadding=0 align=center width=100%>


<!--add site content here-->


</table>
</td>
</tr>
</table>
</td>
<td class=rightBar><img src=img/spc.gif width=1 height=250 alt=''></td>
</tr>
<tr>
<td class=leftBar><img src=img/spc.gif width=1 height=1 alt=''></td>
<td height=18>
<table cellspacing=0 cellpadding=0 width=670>
<tr>
<td align=center bgcolor=c1c1c1>
</td>
</tr>
<tr>
<td>
<table cellpadding=0 cellspacing=0 width=100%>
<tr>
<td>
<table cellspacing=0 cellpadding=0 bgcolor=red align=center width=100%>
<tr valign=middle>
<td height=18 style='font-size:11;color:efefef;font-family:arial;font-weight:900;padding-left:10;'></td>
<td height=18 style='font-size:11;color:efefef;font-family:arial;font-weight:900;padding-right:10;' align=right></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class=rightBar><img src=img/spc.gif width=1 height=1 alt=''>
</td>
</tr>
<tr><td><img src=img/spc.gif width=1 height=2 alt=''></td></tr>
</table>
</body>
</html>

very basic. however, depending on the size (height) that is in the "add content here" area, the space between the top red header and the top border of the browser window varies.

there's an error in the way i set up the page. although the sizing work great (no matter what the size of the content is, the page grows) but that little imperfection at the top of the page become annoying.

i have divs on a page that uses this template above, and when the div is hidden or shown, it affects the top space and shifts the whole page.

any help would be appreciated.

thanks.

- g
 
I would advise against using table based layouts and opt for a css driven one. You can find many examples online of different css layouts and surely one will fit your idea.

As for the tables issue, it's hard to tell, but you might have to add some valign="top" to certain cells to get rid of the problem. I almost never use tables in this manner so I am not an authority, but I am not sure if you can specify valign property on a table row.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top