PDA

View Full Version : Beginner help with frames



bing101
09 Jun 2008, 04:13 PM
I am using a table inside a frame to break up and place a navigation bar on a simple website i am designing.

The problem is when i click on one of the image links that particular part of the image expands in size. I then have to reload the page for the table to look right again.

below is the code for that page.

Thanks!

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>website name</title>
<base target="main">
</head>

<body>
<table border=0 cellspacing=0 cellpadding=0 width="100%" height="100%">
<tr>
<td><img border=0 src="images/HDR_1.bmp" height="100%" width="100%"></td>
<td><img border=0 src="images/HDR_2.bmp" height="100%" width="100%"></td>
<td><img border=0 src="images/HDR_3.bmp" height="100%" width="100%"></td>
<td><img border=0 src="images/HDR_4.bmp" height="100%" width="100%"></td>
<td><img border=0 src="images/HDR_5.bmp" height="100%" width="100%"></td>
</tr><tr>
<td><img border=0 src="images/HDR_6.bmp" height="100%" width="100%"></td>
<td><a href="home.htm"><img border=0 src="images/Home.bmp" height="100%" width="100%"></a></td>
<td><a target="main" href="navigation.htm"><img border=0 src="images/Listings.bmp" height="100%" width="100%"></a></td>
<td><a href="about.htm"><img border=0 src="images/About.bmp" height="100%" width="100%"></a></td>
<td><a href="contact.htm"><img border=0 src="images/Contact.bmp" height="100%" width="100%"></a></td>
</tr>
</table>
</body>

</html>

Wickham
10 Jun 2008, 10:30 AM
I suppose it must be because you have width and height of 100%.

Try a fixed size. If target="main" then how wide is main? Does it help to set the image to the same width?