Forums

[resolved] line breaks in a php template file (4 posts)

  1. herbiehysteria
    Member
    Posted 2 years ago #

    hi guys
    i have a non-widgetised sidebar i have created into which im adding various links etc. How do i create a line break between my links and their headings? i have tried <br /> but it doesn't seem to work, i think im just putting it in the wrong place. any help?
    my template file:

    <!-- begin sidebar2 -->
    <div id="sidebar2">
    <h3>Subscribe</h3>
    <a href="http://www.artbyherbie.com">What is RSS?</a>
    <h3>Connect</h3>
    <h3>Client Reviews</h3>
    </div>
    
    <!-- end
     sidebar2 -->

    i want a line between the 'What is RSS' link and the next 'Connect' heading.
    regards
    HH

  2. racer x
    Member
    Posted 2 years ago #

    It is <hr /> for a "line",
    for a line break.(Just a new line)

  3. Mark / t31os
    Moderator
    Posted 2 years ago #

    A single break sometimes just moves you onto the next line, which will happen naturally sometimes with block level element like a <h3> following another element, so you'll just need to add an additional break to get a full line break between the elements. The presence of floated elements confuses the matter even more.

    This..
    <br /><br />
    .. should be fine..

    I'd personally just apply a margin to one of the elements with CSS ...

  4. herbiehysteria
    Member
    Posted 2 years ago #

    thanks peeps, worked a charm!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags