CSS linebreak issue

gritts

Junior Member
Joined
Dec 4, 2011
Messages
122
Reaction score
20
I had this problem with a theme before but can't find where I noted which CSS property caused it.

The problem is that it won't show a line break if I write:

John Doe
Lives Here

It shows as: John Doe Lives Here

If put John Doe [br tag]
Lives Here

It still shows it as the previous example. It should be like how it works on this forum where it shows:

Line 1
Line 2

Any help is appreciated.
 
Sounds like the html tags are either floating or displaying as inline. See if one of the css properties is "float: left;" and if it is - delete it. Otherwise change set the display property to "display: block;"
 
Try

Code:
<p>John Doe</p>
<p>Lives Here</p>

Unless you reset EVERYTHING in your CSS, I'm pretty sure that's not the issue.

Have you also tried clearing your cache properly. Refresh with CTRL F5, or view the site in incognito mode.
 
Exactly what is needed for this problem.You may use browser tool to find the css seletor.
 
Back
Top