PDA

View Full Version : Internet Explorer doesn't read <br /> breaks?



JelleDesign
Jan 22nd, 2009, 08:14 PM
Have a look at this:
http://www3.cmd.tech.nhl.nl/jong0808/

In Firefox the breaks are shown properly, but in IE it keeps skipping one break?

Could someone help me :thumbsup:

Thanks in advance!

Pepe, the bull
Jan 22nd, 2009, 08:25 PM
I think your slashes are going the wrong way. That might make a difference.


<br />

not


<br \>

You have it right in the title to your post but not on your page.

JelleDesign
Jan 22nd, 2009, 08:27 PM
It sure is a stupid mistake but it doesn't solve it :\

Pepe, the bull
Jan 22nd, 2009, 08:40 PM
I have no idea, but if you put each paragraph in it's own <p> tag and remove margin:0 from the css for the <p> tag, I think it will do what you are looking for.

Excavator
Jan 22nd, 2009, 09:09 PM
It sure is a stupid mistake but it doesn't solve it :\

Validator finds that and other errors as well. Check out the links about validating in my sig below.

<br /> is working wherever I put one in.
Where did you come up with this: position: inherit; ??? Is your editor suggesting that? Been seeing it a lot lately and it's not valid.

BoldUlysses
Jan 22nd, 2009, 09:12 PM
Where did you come up with this: position: inherit; ??? Is your editor suggesting that? Been seeing it a lot lately and it's not valid.

Technically it is. I was recently corrected about this (http://codingforums.com/showpost.php?p=773081&postcount=6). Though I've certainly never seen it used before now...

Excavator
Jan 23rd, 2009, 12:26 AM
Technically it is. I was recently corrected about this (http://codingforums.com/showpost.php?p=773081&postcount=6). Though I've certainly never seen it used before now...

Hmm. Learn something new every day I guess.
Still have to wonder what editor is suggesting it's being used so often, seems like every new coder has it scattered all over there CSS lately.