473,566 Members | 2,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE6 margin problem with <li> element

Hi all,

I'm trying to indent <li> items using:

li {
margin: 0 0 0 50px;}

So I expect something like the following to indent 50 pixels from the left
margin:

<ul>
<li>Item one</li>
<li>Item two</li> [...etc]
</ul>

This works fine in NS7, but in IE6 the indent only occurs after the left
floated menu-bar has been cleared. In fact, even the "bullets" don't appear
until the left float has been cleared. You can see this by resizing the
homepage (on the link above) to a narrow width. Is this an IE6 bug, and, if
so, is there a workaround? Or, of course, have I made some error that I
can't spot?

The site I'm working on is at www.nowpc.co.uk

[Quick note - this site is very much under construction and I'm aware of a
bunch of issues with it, including invalid CSS (at time of posting) caused
by using proprietary CSS "filter:blendTr ans". However, in tests (on local
machine), the problem happens with or without this code. Just so you know,
I'm currently removing this code from the site altogether, so it won't be
there for long... :-) ]

Many thanks in advance,
Neil White
Jul 20 '05 #1
3 3119
From previous:
[Quick note - this site is very much under construction and I'm aware of a
bunch of issues with it, including invalid CSS (at time of posting) caused
by using proprietary CSS "filter:blendTr ans".


The CSS has been repaired and now validates. The problem with the <li>
element remains... :-(

Neil.
Jul 20 '05 #2
"NWhite" wrote in message
Hi all,

I'm trying to indent <li> items using:

li {
margin: 0 0 0 50px;}

So I expect something like the following to indent 50 pixels from the left
margin:

<ul>
<li>Item one</li>
<li>Item two</li> [...etc]
</ul>

This works fine in NS7, but in IE6 the indent only occurs after the left
floated menu-bar has been cleared. In fact, even the "bullets" don't appear until the left float has been cleared. You can see this by resizing the
homepage (on the link below) to a narrow width. Is this an IE6 bug, and, if so, is there a workaround? Or, of course, have I made some error that I
can't spot?


This problem can be clearly seen on this page:
http://www.nowpc.co.uk/site4you/siteforyou.html

There is an even more alarming problem with IE6 on this particular page. If
you hover over any of the links in the content to the right, the page bottom
jumps up, obscuring some of the left hand bar. If you then mouse over the
left hand menu, the page jumps back. I've heard of the IE6 "peekaboo"
effect... is this it?

Neil
Jul 20 '05 #3
"NWhite" <ne********@THI Sneilwhite.org. uk> wrote in message
news:hD******** ******@nurse.bl ueyonder.net...
"NWhite" wrote in message
Hi all,

I'm trying to indent <li> items using:

li {
margin: 0 0 0 50px;}

So I expect something like the following to indent 50 pixels from the left margin:

<ul>
<li>Item one</li>
<li>Item two</li> [...etc]
</ul>

This works fine in NS7, but in IE6 the indent only occurs after the left
floated menu-bar has been cleared. In fact, even the "bullets" don't appear
until the left float has been cleared. You can see this by resizing the
homepage (on the link below) to a narrow width. Is this an IE6 bug, and,

if
so, is there a workaround? Or, of course, have I made some error that I
can't spot?


This problem can be clearly seen on this page:
http://www.nowpc.co.uk/site4you/siteforyou.html

There is an even more alarming problem with IE6 on this particular page.

If you hover over any of the links in the content to the right, the page bottom jumps up, obscuring some of the left hand bar. If you then mouse over the
left hand menu, the page jumps back. I've heard of the IE6 "peekaboo"
effect... is this it?


Well, I've solved both issues by simply flipping the layout horizontally.
Um, thanks for the help...! :-)

Neil
Jul 20 '05 #4

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

Similar topics

3
69239
by: Timo Nentwig | last post by:
Hi! li { display: inline; } <li>foo bar</li> <li>blah</li>
8
6876
by: Michael | last post by:
This is a two-part question to which I haven't been able to find an answer anywhere else. 1. Is it possible to format the bullet/number character of the <li>? In my styles sheet, I have the <li> tag formatted, for example, bold. However, when it's applied, the number of the <li> is not bold, but the text is. Do I have to apply the bold to...
4
11699
by: Kerberos | last post by:
I haven't been able to define a fixed width (well, I chose a 20% width) for the li element used in the navigation menu: http://www.auriance.com/docs/auriance/ Style sheet here: http://www.auriance.com/docs/auriance/css/main.css Is there a way to have all links be the same width (20%)? Thanks, --
5
1832
by: Steel | last post by:
Hi at all, please consider this : <ul> <li><a>No link</a></li> <li><a href="#">This is a link</a></li> <li><a>No link</a></li> <li><a href="#">This is a link</a></li> .................... </ul> How can I do to match the <li> element that have as son the <a
4
2202
by: abs | last post by:
Anybody has an idea how to get the <ul> element which is not nested in <li> element ? In other words I have several lists like this: <ul id="1"> <li>Aaaaaaaa</li> <li>Bbbbbbbb</li> <li>Cccccccc <ul> <li>111111</li> <li>222222</li>
4
5151
by: Bernd Schlingenkamp | last post by:
Hi! A stupid question (I think I have to read the spec more detailed): what kind of content is allowed for <li>-Elements? Is this valid html: <ul> <li><div>somecontent</div></li> <li><div>somecontent</div></li> <li><div>somecontent</div></li> </ul>
2
2567
by: Andrew Donaldson | last post by:
I'd welcome some help in understanding what's going on with graphical browsers in the navigation list at: http://www.bounceandtickle.org.uk/index.html (This site is not about what it might seem from the URL!) I'm using a <ul> for the gimmicky teddy bear links. The teddy is a background image for each <li>. Each link 'button' is an <a>...
32
10584
by: Mark | last post by:
Hi there I am using <li> tags for my menu. <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul>
9
3473
by: eros | last post by:
<li>List <ul> <li>List1</li> <li>List2</li> <li>List3</li> </ul> </li> How to call the php code from that html tags... when I click List1?
0
7673
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...
0
7584
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...
0
8109
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...
1
7645
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7953
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...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2085
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
0
926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.