navidgation area shifting...

Hello all,<br />
<br />
I have just recently finished a website where the navigation area is vertical and on the left. It is part of a table that is 775w X 506h. The navigation areas are not buttons, but rather text inside a cell that I have set up with css and javascript for mouse over effects. <br />
<br />
So this is my problem, in the main center section of the website, I have pictures that are all the same in height, although some are different in width (which as long as the cell is wide enough, shouldn't affect the navigation area I thought). When I click through the navigation bar, the navigation bar cells shift slightly up and down depending on what page I'm viewing. I did give each cell a set height of 30, and it corresponds with the main cell area height, so I have no clue as to why it must shift. <br />
<br />
Does anyone have any ideas on why it does this?<br />
<br />
Thanks<br />
<br />
Brian<!--content-->Post a link to your code.<!--content-->Thanks, but I was hoping for a more serious answer.<br />
<br />
I did discover that with all the cell heights combined the table height should be 515, so I made that change throughout, however the index page still seems to be giving me trouble. <br />
<br />
If anyone has a serious answer, that would be very helpful and I thank you in advance. <br />
<br />
<br />
Brian<!--content-->spufi Post a link to your code. <br />
<br />
...I don't think spufi was being snide...some code "would" be your best bet for an immediate resolve to your dilema<!--content-->Below is a link to the site. Once you click through all the links, each page will be cached and then when you click through the links for the second time each page won't have to load and you'll see what I mean by the navigation area shifting. <br />
<br />
<br />
Spufi I completely overlooked you saying "Post a link to your code" and rather only saw "table {layout:bad}"...that is why I reacted like I did, I apologize.<br />
<br />
<!-- m --><a class="postlink" href="http://www.shanezack.com/website/index.htm">http://www.shanezack.com/website/index.htm</a><!-- m --><br />
<br />
Thanks again,<br />
<br />
Brian<!--content-->What you are trying to do can be accomplished so much simply by CSS instead of Tables and Javascript.<br />
<br />
HTML:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<br />
<html><br />
<head><br />
<title>Welcome to WEH Supply Inc.</title><br />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><br />
<link rel="stylesheet" href=http://www.webdeveloper.com/forum/archive/index.php/"style.css" type="text/css"><br />
</head><br />
<br />
<body><br />
<h1><span>W.E.H. Supply Inc.</span></h1><br />
<div id="contents"><br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"weh_front.jpg" alt="Picture: WEH Supplies Office"><br />
</div><br />
<div id="nav1"><br />
<ul><br />
<li><a...>Home</a></li><br />
<li><a...>About W.E.H.</a></li><br />
<li><a...>Doors</a></li><br />
<li><a...>Windows</a></li><br />
<li><a...>Shudders and Flowerboxes</a></li><br />
<li><a...>Ventilation Products</a></li><br />
<li><a...>Hardware</a></li><br />
<li><a...>Screens</a></li><br />
<li><a...>Mirrors and Glass</a></li><br />
</ul><br />
</div><br />
<div id="nav2"><br />
<a...>Directions</a> |<a...>Contact </a><br />
</div><br />
<div id="footer"><br />
<p>2003 W.E.H. Supply</p><br />
<p>Web Design by Brian Gunzenhauser</p><br />
</body><br />
</html><br />
<br />
<br />
Important thing is that:<br />
1. You have cut tremendously on size of the page<br />
2. Page is easier to debug<br />
3. Accessible to all devices<br />
4. Search engine friendly<br />
5. Standards compliant, hence has best chance to be backward as well as forward compatible.<br />
<br />
CSS FOR THIS PAGE... coming up.<!--content-->CSS for your page<br />
<br />
body {color: #fff; background: #999}<br />
h1 {width: 775px; height: 100px; margin-bottom: 100px; padding: 0;<br />
/* 45px + 20 px + 25px margin */<br />
background: url('weh_head.jpg') no-repeat top left;}<br />
<br />
h1 span {display: none}<br />
/* Since we have background, we dont need the text */<br />
<br />
#contents {background: #fff; color: #000;<br />
/* top margin nor required as vertical margins collapse */<br />
width: 575px; margin-left: 200px;}<br />
<br />
#nav1 {position: absolute; top: 200px; left: 0;<br />
background: #ccc; color: #000}<br />
<br />
#nav1 ul, #nav li {list-style: none; margin: 0; padding: 0}<br />
#nav1 a{display: block; text-align: center;<br />
height: 20px; width: 200px}<br />
#nav1 a:link, #nav a:visited {text-decoration: none; <br />
background: transparent; color: #000}<br />
#nav1 a:active, #nav a:hover {text-decoration: none;<br />
background: #ccc; color: #000}<br />
<br />
#nav2 {position: absolute; top: 145px; left: 0;<br />
height: 20px; color: #000; background: #fff}<br />
#nav2 a {text-decoration: none; color: #000}<br />
<br />
#footer, #footer p {width: 775px; text-align: center;<br />
margin: 0; padding: 0}<br />
#footer {margin-top: 20px}<br />
<br />
<br />
<br />
Note: Didn't test it. But it should work.<!--content-->Wow! Didn't even think of doing things like that. I haven't gotten into too much css, so I'm really glad you pointed that out. I haven't tested it yet, but I will, and I'm anxious to check it out. Looks like a major decrease in code! <br />
<br />
Thank You!<br />
<br />
Brian<!--content-->
 
Back
Top