Making Vertical <hr/> Lines?

Discussion in 'HTML & Website Design' started by cj1223, Oct 3, 2006.

  1. #1
    I've seen sites that divided there content with vertical lines that are kinda like <hr/> tags. How do they do that? also what if you needed to different size lines for both horizontal and vertical?
     
    cj1223, Oct 3, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use CSS and give a <td> a border-left or border-right of your preferred width.
     
    T0PS3O, Oct 3, 2006 IP
  3. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #3
    <hr> is "horizontal rule".

    Those vertical lines are probably borders on either tables or css elements.

    Pick a site that has one and view the HTML source code to see what they are doing.
     
    Will.Spencer, Oct 3, 2006 IP
  4. cj1223

    cj1223 Well-Known Member

    Messages:
    287
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #4
    I tryed that but i cant seem to figure it out, it wouldnt be nothing to do with a table so i dont understand why i would change <td>
     
    cj1223, Oct 3, 2006 IP
  5. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Show us an example you want to copy and we'll show you what code does it.
     
    T0PS3O, Oct 3, 2006 IP
    Will.Spencer likes this.
  6. cj1223

    cj1223 Well-Known Member

    Messages:
    287
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #6
    Thanks i would appreciate that,http://garyblue.port5.com/ You see the line comming down towards the middle?
     
    cj1223, Oct 3, 2006 IP
  7. cj1223

    cj1223 Well-Known Member

    Messages:
    287
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #7
    The whole reason i want to do this is so i can set a float without it going off the page, i usaly use absolute possitioning and i hear thats not good.
     
    cj1223, Oct 3, 2006 IP
  8. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #8
    garyblue.port5.com could not be found...
     
    Will.Spencer, Oct 3, 2006 IP
  9. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #9
    T0PS3O, Oct 3, 2006 IP
  10. cj1223

    cj1223 Well-Known Member

    Messages:
    287
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #10
    hmmm it works fine for me

    thanks i didnt find exactly what i was looking for but i did find some very helpful information on making good menus which i've been wanting to do

    that sucks that site doesnt pull up for you, it wont let me just highlight the line either so i could see the code for just that
     
    cj1223, Oct 3, 2006 IP
  11. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #11
    That is, indeed, a border on the #content div.
    
    #content {
        padding-left: 2%;
        [color=red]border-left: 1px solid #999;[/color]
        float: right;
        width: 60%;
        }
    Code (markup):
    The length of the <vr />, to coin an element, is dependent on the length of the content of that div. To have the <vr /> go the full height regardless of which side is longer, each must have a border that overlaps the other. An example of that is seen on the demo, 2 Column—Apparent Equal Height.

    cheers,

    gary
     
    kk5st, Oct 3, 2006 IP