Results 1 to 4 of 4

Thread: [RESOLVED] CSS, XHTML: problem with <hr />

  1. #1

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Resolved [RESOLVED] CSS, XHTML: problem with <hr />

    i have a problem with displaying a horizontal rule (<hr />).
    i am trying to display a <hr /> 35 pixels from the bottom of the page.

    HTML Code:
    <hr style="position:absolute; bottom:35px;" />
    this doesnt seem to work. any ideas on how to do this?
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602

    Re: CSS, XHTML: problem with <hr />

    HTML Code:
    <hr style = "position:absolute; left:10px; bottom:35px;" />
    I am not sure what isn't working for you. The above works fine for me. The only thing that I added was a left property because if it's not specified the left property isn't defined and appears in the document to the right of the last element. If you are using absolute positioning you should specify top or bottom and left or right.
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3

    Thread Starter
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: CSS, XHTML: problem with <hr />

    thanks for the help.

    i got it to work by adding the left and right properties.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  4. #4
    Hyperactive Member ninjanutz's Avatar
    Join Date
    Jun 2005
    Location
    Bayside
    Posts
    256

    Re: CSS, XHTML: problem with <hr />

    make this thread resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width