www.webdeveloper.com
Results 1 to 2 of 2

Thread: Style a border as a vertical rule??

  1. #1
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856

    Style a border as a vertical rule??

    Is it possible to style a left/right border sort of like a <hr/>?
    That is, I want to display the border or psuedo vertical rule over just a %, something like this <hr class="hr"/> is doing.
    Code:
    .hr {
      	border: 0;
      	width: 80%;
      	color: #f00;
    	background-color: #ff0000;
    	height: 5px;
    }
    So be able to adjust the height by percent and change the width/color of the line.
    Thanks for your time!
    Eye for Video
    www.cidigitalmedia.com

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Not without using an empty element, like a <hr>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles