Need help? Check out our Support site, then


Inserting a line divider

  1. thegeometryofleisure
    Member

    I am trying to insert a Line Divider into a Page at http://jwmulligan.wordpress.com by using the following HTML tag:

    HR WIDTH="75%" COLOR="#FF0000" SIZE="4"

    I need the line to be red because the background is black. Am I doing something wrong? Does wordpress.com support this?

    Thanks very much for your help.

    The blog I need help with is jwmulligan.wordpress.com.

  2. The size and width attributes for the "hr" tag were depriciated in HTML 4.01 and are not supported at all in XHTML 1.0 and above: http://www.w3schools.com/tags/tag_hr.asp

    <hr> is also not allowed in XHTML. You have to use the self-closing hr tag <hr />.

    Also in XHTML you cannot use uppercase in HTML tags. Tags must be lowercase.

  3. You can use this (you can change the height number to adjust line thickness):
    <div style="width:75%;height:2px;background:#ff0000;"></div>

  4. thegeometryofleisure
    Member

    panaghiotisadam,

    thanks very much! that's working quite well.

Topic Closed

This topic has been closed to new replies.

About this Topic