Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to add a vertical line in html

/*Please give a thumbs up if this was helpfull*/

.vl {
  border-left: 6px solid green;
  height: 500px;
}

/*How to center the vertical line in your page:*/
.vl {
  border-left: 6px solid green;
  height: 500px;
  position: absolute;
  left: 50%;
  margin-left: -3px;
  top: 0;
}
 
PREVIOUS NEXT
Tagged: #add #vertical #line #html
ADD COMMENT
Topic
Name
5+7 =