• Resolved dickrichards

    (@dickrichards)


    I’m HTML semi-literate and want to know if I’ve done something really dumb. I tried <BR> to add blank lines in my sidebar. Worked well in IE and Firefox but didn’t pass XHTML. Tried adding <spacer> as per instructions in this forum. Worked well in IE, but in Firefox it drove all content below it to the bottom of the page.

    So, I did this:

      OK in IE. OK in Firefox if you don’t mind >> in the blank line. Validates. All-in-all it seems an OK (not perfect) solution.

      So…exactly how dumb is this? The site is https://www.ongenius.com/blog

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dickrichards

    (@dickrichards)

    Sorry, forgot the backticks…

    I did this:
    /

    • /

    Moderator James Huff

    (@macmanx)

    The backtick key is above the tab key, to the left of the 1 key, and typically under the escape key.

    <br> will validate in XHTML but you have to tweak with it to get it where it won’t cause problems.

    Actually, a better way to do this is in the CSS – add some bottom padding to the <li> elements.

    Thread Starter dickrichards

    (@dickrichards)

    macmanx and vkaryl,

    Thanks for the handholding on the backtick and the code. What I did was add a blank <li> element within a <ul> element.

    FYI if you want to use the line-break tag in the future, you simply add a slash resulting in <br />

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blank Lines – Yet Again’ is closed to new replies.