• Resolved Johnny Bravo

    (@herbiehysteria)


    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="https://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

Viewing 3 replies - 1 through 3 (of 3 total)
  • It is <hr /> for a “line”,
    for a line break.(Just a new line)

    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 …

    Thread Starter Johnny Bravo

    (@herbiehysteria)

    thanks peeps, worked a charm!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘line breaks in a php template file’ is closed to new replies.