Jump to content

Recommended Posts

Posted

I've just finished the bare bones of a three-column design on my blog, and I've noticed that the 'br' tag isn't working or won't show up.

 

For example

 

>my name is marie.
<br />
i'm twenty-one years old.
<br />
i was born in ireland, but live in dallas as of april '05.

 

would look like this :

 

my name is marie.i'm twenty-one years old.i was born in ireland, but live in dallas as of april '05.

 

Everything looks cluttered and cramped without the breaks, which I really hate.

 

This is one thing that's baffling me. I can't find anything in my CSS which could cause this, but I'm also only learning about CSS fully so it's possible that I missed something.

Posted (edited)

Hmm... after a quick pass-over I really didn't see anything that would cause that. A quick run through the W3C CSS Validator did give an error though. Probably not the answer to your problem, but it could cause you problems later down the road.

See the results:

 

http://jigsaw.w3.org/css-validator/validat...&usermedium=all

 

Edit: Basically, what that says is on line 12 you've got "margin-top: 10 0px 0px 0px;"... after that 10 you need to put a unit, such as "px" or whatever unit you're shooting for.

 

PS: I hate CSS problems :( they haunt your sleep... but I love using CSS for my sites :)

Edited by cajunman4life
Posted (edited)

Thanks. : )

 

I've been going through the CSS bit by bit, cleaning it up in case I did make an error somewhere that wonked the breaks up. I just wish it the answer to my issue were as simple as 'px'.

Edited by marie b.
Posted

I found the issue.

 

The paragraph tag had been given attributes of 0px margin and 0px padding and it was paying attention to it, even though I'd specified my own attributes further down the file.

 

I also realized that I had linebreak conversions enabled in MT, so the break tags were being recognized and the p tags weren't.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...