Forum Moderators: not2easy

Message Too Old, No Replies

lists for image navigation?

         

gleddy

11:19 am on Sep 21, 2004 (gmt 0)

10+ Year Member



seems to make sense? or does it... never really tried before but then it worked so nicely... except I can't get rid of a few pixel margin at the bottom of the containing <td> cell.

any suggestions would be great... getting tired and can't see this straight anymore.

want it to sit flush, or just exact size with the td.

cheers

(cant attach the images, but here is the code anyway...)

==============

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<style type="text/css">
.nispacer {
font-size: 1px;
visibility: none;
}
#topNav {
margin: 0;
padding: 0;
}
#topNav li {
padding: 0;
margin: 0;
list-style: none;
float: left;
display: inline;
}
#topNav img {
border: none;
}
</style>
</head>

<body>
<table cellpadding="0" cellspacing="0" border="1" width="760" height="25">
<tr>
<td width="760" height="6"><div class="nispacer">&nbsp;</div></td>
</tr>
<tr>
<td width="760" height="19">
<ul id="topNav">
<li><a href="#"><img src="image_1.gif" height="19" width="104"></a></li>
<li><a href="#"><img src="image_2.gif" height="19" width="92"></a></li>
<li><a href="#"><img src="image_3.gif" height="19" width="104"></a></li>
</ul>
</td>
</tr>
</table>
</body>
</html>

JAB Creations

1:08 pm on Sep 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your height="25" gives you the margin you're talking about. The height of your images is 19px.

A good days sleep will refresh your mind. It always does for me :D

JAB Creations

1:10 pm on Sep 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh... I checked that again actually and I must correct myself...

Why are you using a bullted list? I fail to see it's usuage. Remove the bullited list and you should have less problems. It's not something that calls for a bullet list.

gleddy

11:28 pm on Sep 21, 2004 (gmt 0)

10+ Year Member



cheers for that.

yeah, I was wondering if the list was a bit too much... so take away the list and just leave the 3 images within the <div> tags?

is that a good way to approach this type of menu or are there better ways?

cheers.

Noisehag

7:09 am on Sep 22, 2004 (gmt 0)

10+ Year Member



In addition, get rid of the hard returns between images. IE doesn't like that...

<a href="#"><img src="image_1.gif" height="19" width="104" border="0"></a><a href="#"><img src="image_2.gif" height="19" width="92" border="0"></a><a href="#"><img src="image_3.gif" height="19" width="104" border="0"></a>