1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CSS linebreak issue

Discussion in 'Web Design' started by gritts, Mar 12, 2014.

  1. gritts

    gritts Junior Member

    Joined:
    Dec 4, 2011
    Messages:
    120
    Likes Received:
    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.
     
  2. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Can you post your CSS or link to an example?
     
  3. Chlenix

    Chlenix Newbie

    Joined:
    Nov 3, 2013
    Messages:
    30
    Likes Received:
    5
    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;"
     
  4. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,373
    Likes Received:
    5,439
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    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.
     
  5. Jasmine5

    Jasmine5 Junior Member

    Joined:
    Mar 12, 2014
    Messages:
    144
    Likes Received:
    32
    interpreter issue try in another bowers.
     
  6. SEOnetic

    SEOnetic Senior Member

    Joined:
    May 21, 2012
    Messages:
    995
    Likes Received:
    120
    Exactly what is needed for this problem.You may use browser tool to find the css seletor.