473,409 Members | 1,979 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,409 software developers and data experts.

the vertical spacing of list items in MSIE having block leveled hyperlinkelements in LI elements

<style>
..menu{
background:yellow;
font:12px Arial;
}
..menu li{
margin-bottom:0;
margin-top:0;
padding-bottom:0;
padding-top:0;
}
..menu a{
display:block;
margin:0;
padding:0;
border:solid 1px red;
}
</style>
<ul class="menu">
<li><a href="">bla</a></li>
<li><a href="">bla</a></li>
<li><a href="">bla</a></li>
<li><a href="">bla</a></li>
</ul>
How do I control the vertical spaing in MSIE normally like in Mozilla or
Opera? I mean latest MSIE6 SP1 has such ENORMOUS gaps between those
hyperlinks. What is the solution fixing this, dont convince me I have to
put all those <li>'tags consecutively onto one line...
Jul 20 '05 #1
1 2040
Marek Mänd wrote:
.menu{
background:yellow;
Always set a text color with background, for reasons stated numerous
times here before.
font:12px Arial;
Please don't use px for font size. Had you spent any time reading ciwas,
you'd know that.
.menu li{
margin-bottom:0;
margin-top:0;
After the fix I suggest below, you may not need them. Test in browsers
and see.
padding-bottom:0;
padding-top:0;
You don't need those padding:0; declarations.
.menu a{
display:block;
margin:0;
padding:0;
border:solid 1px red;
}

<ul class="menu">
<li><a href="">bla</a></li>
<li><a href="">bla</a></li>
<li><a href="">bla</a></li>
<li><a href="">bla</a></li>
</ul>
latest MSIE6 SP1 has such ENORMOUS gaps between those hyperlinks.
Bug in MSIE/Win. Try this:

..menu a { width: 100%; } /* hack to fix Bill Gates' crap browser */
..menu>a { width: auto; } /* corrected width, hidden from msie win */
dont convince me I have to put all those <li>'tags
consecutively onto one line...


I don't, and my nav anchors display: block work fine. See "on this page"
and "related links" on this page for working example.

http://www.tsmchughs.com/site/help

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2

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

Similar topics

4
by: mappo | last post by:
There are about a million posts on how to get rid of the extra space _after_ the form end-tag, but I can't find any that solve my problem: extra space _in_ the form tag. I have a table nestled...
2
by: puzzled | last post by:
I am trying to use css to control the indentation within items in a list. I would like something that looks like this: Text of a paragraph goes here, leading to the following list: * list...
13
by: Dave | last post by:
Hi, what Property and Values are used to space out further from one another the items in a list (assuming it's possible)? The default presentation is a bit "bunched up" for me. Thanks, Dave
2
by: fuzzyman | last post by:
In a couple of places on my webpages I have several items that I would like to be arranged vertically. URLS : http://www.voidspace.org.uk/python/index.shtml ,...
5
by: S | last post by:
Whew! Thanks for your help on that last post. I actually understand what you wrote. I'm trying not to use these groups as a way to get my code written for me, I really want to understand what...
24
by: JB | last post by:
Hi All, This is doing my head in! Please help. I've built a simple <ul> to serve as a menu for a page I'm working on. I have tested the menu in Mozilla Fireworks 1.5 and it's fine - nice and...
2
by: larzeb2000 | last post by:
I made a vertical navbar using a background image for the buttons. When I tested under FF or Opera, it looks fine, with the buttons touching vertically. However, in IE6 the buttons are spaced apart...
6
by: mno | last post by:
Hi all, I have a problem that I've been stuck with for the last couple of days that's driving me a bit more than crazy at this point. Sorry if this message is not very clear. I have a design...
1
by: dave8421 | last post by:
Hi, I have a (strict) html document with the following portion: <ul> <li><img alt="" src="images/image1.jpg" /></li> <li><img alt="" src="images/image2.jpg" /></li> <li><img alt=""...
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
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...
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,...
0
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...

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.