Results 1 to 2 of 2

Thread: CSS, Tables and <hr> tags

  1. #1
    Join Date
    Oct 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS, Tables and <hr> tags

    The plot thickens...

    OK I put my hrs in a table and for some reason (despite setting the width) they all stretch across its entire width.

    Any ideas?

    Max

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, <hr> doesn't belong in a <table> exactly, if that's exactly what you mean. They could go in a <td> within a <tr> within a <table> which is probably what you meant. I mention this just in case and also because for the width of the <hr>, if expressed as a %, to have much meaning within a <td>, the <td>'s width must also be set. If you set an <hr>'s width in absolute units like pixels (not generally a good idea) they should appear that width no matter what, unless you made an error in setting their widths or placed them somewhere that they don't belong.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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