On Thu, 8 Dec 2005, David Ross wrote:
Andy Dingley wrote [in part]:
On Wed, 07 Dec 2005 19:06:28 -0800, Doug Mazzacua <d_*****@surfbe st.net>
wrote:
I noticed that that <ul> lists display differently with <br> between
<li>s in IE and Mozilla.
This isn't valid HTML, so don't do it.
A test page with <br> breaks within the text following an <li> tag
Of course. Re-read the above - it says "between" li, not within. So
you changed the topic, and threw no new light on the original problem,
whatever it might have really been. Needless to say, the original
poster should have offered the URL of some specimen page to illustrate
their question - bonus points for saying what they were hoping to
achieve, and what actually happened in the browser they tried.
To the O.P, I would have to say that different renderings in different
browsers is something which comes with the territory - it's a feature
of the web. But there are ways of helping to get reasonably
consistent rendering in the usual graphical browser situation, and I'd
say the most widely-applicable rule to apply across the board (with
only minuscule exceptions) is to conform to applicable interworking
rules.
Over and above that: when lists are involved, the stylesheet should
not try to set isolated values for border-left and/or margin-left on
ul, ol, li. If any of those properties is specified, then all of them
should be. The reason, obviously, is that different browsers use
different defaults, even when the end result looks much the same.
<br> as a means of inserting vertical white space should basically
never be used nowadays (if it ever should have been used for that
purpose, which I might dispute). The defined purpose for <br> is to
break a line - nothing more. Use it that way, or don't use it at all.