IT Certificaions

Google Cloud Platform

Tuesday, November 22, 2011

CSS problems: Add a vertical line on a page

You can add a line separator using div ....

.line_seperator{   
    border-left: 2px solid #B1B1B1;
    height: 150px;
    margin-left: 150px;
    margin-top: -35px;
    width: 2px;
}
Here border-left: will add a line.. Even you can use border-right, border-top and border-bottom and then you can arrange your the width of your div.