Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11

Thread: Vertical Rules

  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Vertical Rules

    Is there any way to use <hr> vertically other than:

    <td width="1" bgcolor="#000000"> ?

    Thanks!

  • #2
    Regular Coder
    Join Date
    Dec 2002
    Location
    Minneapolis, MN
    Posts
    208
    Thanks
    0
    Thanked 1 Time in 1 Post
    no not hr... it stands for horizontal rule. the table method you showed is on option or a left/right border on a box element such as a div works, or a 1 pixel high bg image thats tiled veritcaly works too.
    anthony

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Do a search on hr here. Someone figured a way to do it without images I think.
    Last edited by zoobie; 02-13-2004 at 06:16 PM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    <div style="border-right: 2px solid blue; height: 300px; width: 300px;"></div>
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #5
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I never associated my tables with <div before.

    Can you simply show me how you do it to have a black right border for a cell?

    Do you just:

    <div style="border-right: 1px #000000">
    <td>whatever</td>
    </div>

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    <td style="border-right: 3px solid #000000">x</td>
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <hr style="width: 2px; height: 400px;" /> -- Try it
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #8
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    zoobie:

    that worked great for me.

    thanks.

    I also want to ask you:

    if you want to border a table, but only the circumference of it - not all the cells - is there a specific script for this?

    thanks.

  • #9
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I just figured it out. its just "border"

    Thanks anyway!

    I couldnt do it without your previous post!

  • #10
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Roy Sinclair
    <hr style="width: 2px; height: 400px;" /> -- Try it
    Questionable semantics.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #11
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by me'
    Questionable semantics.
    No doubt but nobody added a <vr /> tag during all the other odd changes that went on during the browser wars. Of course since this was in regards to a table anyway zoobies probably got a better answer. If that rule needs to span all the rows then a colgroup tag for that rule may be in order.
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

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