473,396 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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:blendTrans". 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 3114
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:blendTrans".


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********@THISneilwhite.org.uk> wrote in message
news:hD**************@nurse.blueyonder.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
by: Timo Nentwig | last post by:
Hi! li { display: inline; } <li>foo bar</li> <li>blah</li>
8
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>...
4
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:...
5
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> .......................
4
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>...
4
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>...
2
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...
32
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
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.