Results 1 to 2 of 2

Thread: Beginner help with frames

  1. #1
    Join Date
    Jun 2008
    Posts
    1

    Beginner help with frames

    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>

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    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?
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •