Inserting a line divider

  • Author
    Posts
  • #415090

    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.

    #415282

    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.

    #415304

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

    #415322

    panaghiotisadam,

    thanks very much! that’s working quite well.

The topic ‘Inserting a line divider’ is closed to new replies.