Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

CSS Vertical Rule display issue

  • 19-07-2006 02:20PM
    #1
    Registered Users, Registered Users 2 Posts: 3,514 ✭✭✭


    I've created a dashed vertical rule that has a height of 100%. If you take a look at the protoytype i set up @ www.whatismyip.ie/beta/beta2.html you'll see that there is a dashed VR between the nav area and the main content, however, i have the same exact code placed to the right on the main content area and it's not displaying at all.

    The CSS i'm using to create the dashed look is
    <div style="border-right: 2px; color: #000000; height: 100%; witdh: 1px; padding: 0; display:block; border-style: dashed; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px;     border-right-width: 1px; ">
    

    The code above displays the dashed VR on the left side perfectly.

    If i change the height from 100%; to 500px; on the div to the right of the main area then the VR will appear with a height of 500px but if i change it the same code as featured above (use 100% instead of 500px) it doesn't display at all.

    I have no idea why this is happening :confused:


Comments

  • Closed Accounts Posts: 34,808 ✭✭✭✭smash


    switch to using the classes on the td and not the div, it always gives less hassle


Advertisement