473,698 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

margins on li elements with IE

Hello,

I noticed that IE seems to put some kind of default margins on <li> elements
and the only way to get rid of them seems to be asigning negative margins.
To make things worse, IE5 and IE6 seem to have different defaults. Is there
an elegant way to remove these stupid margins?

Greetings,
Thomas
Jul 20 '05
27 3152
It seems "Thomas Mlynarczyk" wrote in
comp.infosystem s.www.authoring.stylesheets in article
<bu************ *@news.t-online.com>:
Also sprach Stan Brown:
Besides different versions of IE, different versions of other
browsers do this still differently. Fortunately, there's help:

http://devedge.netscape.com/viewsour...2/list-indent/
Thanks for the link, but there they talk about list indentation (thus, a
"horizontal matter"), while my problem relates to a vertical space.


Gee, if only you had said so in your original article:Message-ID: <bt************ *@news.t-online.com>

You could have saved us both some wasted time.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #21
Stephen Poley wrote:

[snip]
The number of NN4 users is now so low (3% for my site, and most sites
are reporting less than that) that it isn't really worth worrying
about cosmetic details for them.


Does anywhere reliable track such statistics using some mechanism which
makes them meaningful in a web wide context?

I recently needed to justify use of CSS in a project & although I could
clarify support on a per browser basis, I was unable to quote usage
levels for the browsers themselves.

Cheers.

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 20 '05 #22
"Michael Rozdoba" <mr**@nowhere.i nvalid> wrote in message
news:40******** *************@l ovejoy.zen.co.u k...
| Stephen Poley wrote:
....
| > The number of NN4 users is now so low (3% for my site, and
most sites
| > are reporting less than that) that it isn't really worth
worrying
| > about cosmetic details for them.
|
| Does anywhere reliable track such statistics using some
mechanism which
| makes them meaningful in a web wide context?

I have trouble taking such statistics seriously.

E.G. A NN4 user comes to a page once
and sees a blank screen/gibberish/whatever.
They leave and do not come back.
An IE 6 user comes to the page, likes it so
much they bookmark it and visit 9 times.
(or tell nine friends about it)

The stats would indicate IE6 90%, NN4 10%.
Wouldn't they?

My point being that a site showing low stats for
NN4 may simply be unuseable in that browser.

( ..I hope I have not offended you deeply in the
event that you went to extraodrinary lengths to
ensure your pages _were_ usable by NN4!
And yes, that would blow my argument out
of the water in this case.. )

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
Jul 20 '05 #23
In article <ox************ *****@news-server.bigpond. net.au>, andrew64
@bigNOSPAMpond. com enlightened us with...

The stats would indicate IE6 90%, NN4 10%.
Wouldn't they?

My point being that a site showing low stats for
NN4 may simply be unuseable in that browser.


I think all pages should be unusable in that POS so people upgrade.

/half-kidding and tired of supporting the darn thing

--
--
~kaeli~
If a parsley farmer is sued, can they garnish his wages?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #24
Andrew Thompson wrote:
[browser usage stats]

I have trouble taking such statistics seriously.

E.G. A NN4 user comes to a page once and sees a blank
screen/gibberish/whatever. They leave and do not come back. An IE 6
user comes to the page, likes it so much they bookmark it and visit 9
times. (or tell nine friends about it)

The stats would indicate IE6 90%, NN4 10%. Wouldn't they?
I realise that - unless some workaround could be found tracking users or
recording browsers for a given site over a small period of time -
perhaps randomising the sites checked.

It would all be hacky & difficult to implement, but I'd have thought
someone must have made a moderately educated guess at stats.

How about accesses to browser upgrade sites or other resources?
My point being that a site showing low stats for NN4 may simply be
unuseable in that browser.

( ..I hope I have not offended you deeply in the event that you went
to extraodrinary lengths to ensure your pages _were_ usable by NN4!
And yes, that would blow my argument out of the water in this case..
)


Terribly; I shall never speak to you again. Just as well this is written
really :)

As to the above question, no. I'm just getting into web design & wanted
some evidence to back my intentions up.

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 20 '05 #25
It seems "Andrew Thompson" wrote in
comp.infosystem s.www.authoring.stylesheets in article
<ox************ *****@news-server.bigpond. net.au>:
I have trouble taking such statistics seriously.
As do I, and as does everyone except those whose pet browser scores
high.

[scenario snipped]The stats would indicate IE6 90%, NN4 10%.
Wouldn't they?


I suspect a far larger distortion is introduced by big ISPs that
cache Web pages.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #26
On Fri, 16 Jan 2004 20:08:52 GMT, "Andrew Thompson"
<an******@bigNO SPAMpond.com> wrote:
"Michael Rozdoba" <mr**@nowhere.i nvalid> wrote in message
news:40******* **************@ lovejoy.zen.co. uk...
| Stephen Poley wrote:
...
| > The number of NN4 users is now so low (3% for my site, and
most sites
| > are reporting less than that) that it isn't really worth
worrying
| > about cosmetic details for them.
|
| Does anywhere reliable track such statistics using some
mechanism which
| makes them meaningful in a web wide context?

I have trouble taking such statistics seriously.

E.G. A NN4 user comes to a page once
and sees a blank screen/gibberish/whatever.
They leave and do not come back.
An IE 6 user comes to the page, likes it so
much they bookmark it and visit 9 times.


Well indeed, and I suspect that the NN4 figures for my site are higher
than many, precisely because I do try to keep it readable for NN4. But
most of my CSS is now hidden from NN4, so its users get a somewhat
inelegant page. (Admittedly I don't check the NN4 appearance as often as
I used to, but I think most pages are still pretty much OK.)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #27
"Stephen Poley" <sb************ ******@xs4all.n l> wrote in message
news:sm******** *************** *********@4ax.c om...
| On Fri, 16 Jan 2004 20:08:52 GMT, "Andrew Thompson"
| <an******@bigNO SPAMpond.com> wrote:

| >E.G. A NN4 user comes to a page once
| >and sees a blank screen/gibberish/whatever.
| >They leave and do not come back.
....
| Well indeed, and I suspect that the NN4 figures for my site are
higher
| than many, precisely because I do try to keep it readable for
NN4. But
| most of my CSS is now hidden from NN4, so its users get a
somewhat
| inelegant page. (Admittedly I don't check the NN4 appearance as
often as
| I used to, but I think most pages are still pretty much OK.)

I just did, and yes, they are.
[ subtract 15 or so from the NN4 numbers as
being down to 'just curious' ;-) ]

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
Jul 20 '05 #28

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

Similar topics

9
3731
by: Frances Del Rio | last post by:
when I test my stuff with the validator in HomeSite it tells me the body tag no longer reads margin attributes.. does this mean now margins are to be specified only in CSS? I work for an internet co., they support IE 5+ and the old pre-6 Netscape.. if you don't put this tag in html docs, what version of HTML does it default to? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
8
4412
by: Jukka K. Korpela | last post by:
I just noticed that most browsers render <table border="1"><tr><td><p>foo</p></td></tr></table> the same way as <table border="1"><tr><td>foo</td></tr></table> That is, they ignore the p markup in the sense that they don't apply the normal default top and bottom margins. This is rather odd, especially
12
2451
by: Secret Guy | last post by:
I'm trying to understand generally how to make a grid of variously sized boxes using CSS. The first idea I had was to make a box where I can see the margin, padding, border and content edges, and understand why they have the areas that they do. And I'm having trouble... I read in the 2.1 spec, that the height and width properties specify the height and width of boxes generated by applicable elements, and that a percentage value is taken...
2
3110
by: Jeff Thies | last post by:
I have something like this: <span>a</span><span style="margin-left: 15px">b</span> It appears to me that horizontal margins are allowed for inline elements. (broken on preceding element right margin also) http://www.w3.org/TR/CSS21/box.html#q11 section 8.6 Is that right?
3
1760
by: fleemo17 | last post by:
The same layout I discussed earlier (http://www.sunriveronline.org/misc/clrn ) looks pretty darn good in most of the browsers I've checked it with, except for Opera. Apparently, Opera is applying my 0 Margin attribute on the background image, but keeping an 8-pixel margin for the page's elements, which throws the design into a tizzy. Is there a way to make Opera apply the 0 margin to all the elements on the page? -Fleemo
6
1474
by: namenotgivenhere | last post by:
Will the following css have the same visual result in most modern browsers as it does in IE6? TIA p { margin-top: 6px; margin-bottom: 6px} ul { margin-top: 6px; margin-bottom: 6px}
3
2929
by: Patient Guy | last post by:
For a long time, this page has been up and an embarrassment. http://tinyurl.com/ylcqum In Firefox, the table moves out of its parent container with the negative margin, but not in MSIE6. Does someone keep a list of workarounds in dealing with problems like these for the browsers that when listed in ranking order with respect to use, make up the 95-99% cumulatively used browsers?
11
2217
by: listerofsmeg01 | last post by:
Argh! I'm going nuts trying to get a constant margin after a floated div that works cross browser. This works in IE but not Firefox: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head></head> <body> <div style="float:left; height:100px; background-color:red;">Hi, I'm floating</div>
6
2279
by: Paul Wake | last post by:
Do paragraph bottom margins overrule body margins? (To explain what I mean, http://www.xmission.com/~wake/computerrules.html has 5% margins, including the bottom margin, in IE, but not in Firefox. I assume Firefox does it correctly. Does this no-5%-bottom-margin happen because I have a specific paragraph bottom margin listed in the stylesheet after I have listed the 5% body margin?)
0
8609
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
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8901
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
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...
0
7739
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.