Jump to content

styling <br /> in firefox


henryhenry

Recommended Posts

Is it me or does firefox refuse to allow this (for strict xhtml doctype)<br style="line-height: 0.2em" />It displays fine in Opera 9 but I have found that firefox is slightly more compliant than opera 9 (or maybe it's just me - I'm quite new at this!). Also I got it to display lineheight over 1em. IE does it's own thing of course.Oh and this is rendered as expected in transitional mode but as an unstyled <br /> in strict mode.I'm a bit confused.(ps I got around my problem - without using the <br /> at all - this is for future reference...)

Link to comment
Share on other sites

  • 1 month later...

Personally I've never tried that. But I'm guessing it would work in theory. Have you tried using <div></div> and specifying your line spaces that way?

Link to comment
Share on other sites

I can't remember exactly what i was trying to do... my solution was something like adding padding to the <li> as that is what I was actually trying to do (learning curve!). Still it was a pain that the <br /> would do line-height. Perhaps it was something to do with using the strict DTD? Hmmm...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...