henryhenry Posted January 17, 2007 Share Posted January 17, 2007 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 More sharing options...
ste Posted January 17, 2007 Share Posted January 17, 2007 im not sure myself, maybe try br {margin: 0; padding: 0; border-width: 0; line-height: 0.2em;} Link to comment Share on other sites More sharing options...
Err Posted February 23, 2007 Share Posted February 23, 2007 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 More sharing options...
henryhenry Posted February 23, 2007 Author Share Posted February 23, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now