473,665 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help needed styling menu

Hi guys,

I am trying to build a simple menu. See

http://jupiter.ianhobson.co.uk/msc/index.htm

It looks how I want in FF and Safari, but IE6 is not playing nice. It is
adding space between the <lielements.

Anyone know why and/or how to fix it?

BTW - the rather excessive markup of wrappers etc is to get the width
constrained between a max and min. The min width stops the layout
breaking and the max is to stop very long lines of text that are hard to
read. It works. (See layout.css) but I have disabled some parts I am not
using to prove they were not interfering with the menu.

Thanks for your input.

Ian

p.s. The page validates HTM 4.01 strict. I haven't checked the css - the
W3 validator has been down all weekend.
Oct 1 '07 #1
3 1448
Ian Hobson wrote:
>
http://jupiter.ianhobson.co.uk/msc/index.htm

It looks how I want in FF and Safari, but IE6 is not playing nice. It is
adding space between the <lielements.

Anyone know why and/or how to fix it?
Adjust the padding and margins of the <uland <lielements. IE has a
slightly different take on those spacings than other browsers.
BTW: the bottom color of background.png does not match the background color.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Oct 1 '07 #2
JL
Ian Hobson wrote:
Hi guys,

I am trying to build a simple menu. See

http://jupiter.ianhobson.co.uk/msc/index.htm

It looks how I want in FF and Safari, but IE6 is not playing nice. It is
adding space between the <lielements.

Anyone know why and/or how to fix it?
Yes. It's a stupid bug in IE that adds unwanted whitespace after the
closing li elements. A simple way to fix this is to mark up the list
like this:

<ul class="depth1">
<li class="current first"><a
href="/index.htm">Home </a></li><li><a
href="/about.htm">Abou t Olivia</a></li><li><a
href="/contact.htm">Co ntact Us</a></li></ul>

HTH
Oct 2 '07 #3
JL wrote:
Ian Hobson wrote:
>Hi guys,

I am trying to build a simple menu. See

http://jupiter.ianhobson.co.uk/msc/index.htm

It looks how I want in FF and Safari, but IE6 is not playing nice. It
is adding space between the <lielements.

Anyone know why and/or how to fix it?

Yes. It's a stupid bug in IE that adds unwanted whitespace after the
closing li elements. A simple way to fix this is to mark up the list
like this:

<ul class="depth1">
<li class="current first"><a
href="/index.htm">Home </a></li><li><a
href="/about.htm">Abou t Olivia</a></li><li><a
href="/contact.htm">Co ntact Us</a></li></ul>
Thank you.

Just the information I needed - and I never thought of taking that
approach. And as the pages are all generated, I can even fix them using
the generator!

Thanks again.

Ian
Oct 4 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2094
by: brett | last post by:
If you render this code, the menu items should align horizontally across the page. If the DIV tag is removed around "Search Library", you'll see what I mean. However, with the DIV tag in place, "Search Library" jumps up above "Get Alerts". I want the DIV styling to only turn the text a light gray and nothing else. There should be no other reformatting or moving of text. Perhaps a DIV isn't the correct tag. I'm open to any...
11
2011
by: Ian | last post by:
'm hoping someone can help me resolve a problem I am having with stylesheets. I've only just started usinbg them so it's more than likely something similar. Trouble is I don't seem to be able to fix it so would be grateful for any help. Basically I'm working with a web page I inherited which has a menu in which the layout/colours are something like this: Heading (always yellow) - Link (always white irrespective of visited or not...
4
2745
by: jereme.goblue | last post by:
The web page at http://www.rossowinspections.com/ has an issue with the left menu. The left menu has 7 links. One of the links doesn't work. Using Firefox 1.5 the Fees link isn't a clickable link, if viewed as a full screen. If you shrink the window down the Fees link then becomes a link. The link works in IE and Mozilla. I've validated the CSS and XHTML, the CSS had no errors, the XHTML has no errors other than the paramaters for the...
53
2833
by: Paul Watt | last post by:
Hi again, Ok so I've got two new problems with this layout http://www.paulwatt.info/test/turn/ 1) When I increase the width of the Maincontent Div from 73% to 74% to line it up with the right hand side of the page, the whole div drops to below the level of the leftcell div. put it back to 73% and it goes back to its correct posistion. 2) It looks fine in IE but a absolute dogs dinner in FF. whys this?
1
1766
by: leicklda | last post by:
Hi there, I'm very novice to web design. I'm trying to make a pulldown menu, but the formatting keeps getting screwed up when you roll the mouse over it. Please see www.boundarysys.com for what I'm talking about. Before the mouse touches the pulldown, the vertical height of the menubar is perfect. As soon as the mouse rolls over it, it expands to about twice
1
1127
by: xx75vulcan | last post by:
Howdy! I've got a javascript menu that was handed to me. I believe it was hand coded- but not sure. I need to find a way to specify the font color and size of the menus. Currently, the menu is embeded into an html page that links a CSS file. The BODY tag in the CSS file will tell the javascript menu what to do, but the problem is, i need the javascript menu to have different font
1
1795
by: atombee | last post by:
Hi- this is the project that will not end! (sure you've all been there). I had originally purchased a php/css nav bar for the client, but it was buggy as hell, so I decided to do in css, in which I am still a novice, I am afraid. You can see the sample nav bar at www.tangerine-sky.com/horizontal_nav.html (I am pasting source code below) It's very simple, has the css included in the page ... works fine on a mac, okay on firefox on a PC but...
15
1964
by: rhino | last post by:
I've put together a prototype of two-tiered CSS tabs that works really well in IE6, IE7, and FF2. It also works very well in Opera 9.27 _except_ that the placement of the lower tier of tabs is messed up. Both the XHTML and CSS validate without any errors or warnings. Can anyone help me figure out what is wrong? I'd be especially interested in the technique you used to figure out where the problem was. I still struggle a lot when I try to...
0
8438
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8779
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2004
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.