Vertical Line with DIV TAG

Hi Experts
  Like a horizontal Line  i need to add a vertical line to seperate my DIVs. please help me out.
 Thanks
LVL 1
B_PatiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

erikTsomikSystem Architect, CF programmer Commented:
0
pschramaCommented:
You can add a right border to your left div:

div#left
{
   border-right: solid 1px black;
}
0
remorinaCommented:
Hi B_Pati,
Try the code below it should show you how to achieve this
You can also set the minimum height so they would line up together

Cheers
<html>
<head>
<title>Vertical Separator</title>
<style type="text/css">
#wrapper {width:1000px;padding:10px;margin:0 auto;border:solid 1px #999;overflow:hidden;font:normal 12px Arial, Helvetica, Serif;}
.divextender {width:1100px;}
.divitem{
        float:left;
        width:220px;
        min-height:120px;
        border-right:solid 1px #ccc;
        margin:0 10px 10px 0;
        padding:10px;
}
.last {border:none;}
</style>
</head>
<body>
<div id="wrapper">
    <div class="divextender">
        <div class="divitem">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue porttitor sem sit amet consequat.  </div>
        <div class="divitem">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue porttitor sem sit amet consequat. Donec vel lectus leo. In non risus ac lorem lacinia euismod et ultrices sapien. Nam ultrices odio in dui convallis id aliquam diam sodales. </div>
        <div class="divitem">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue porttitor sem sit amet consequat. Donec vel lectus leo. </div>
        <div class="divitem last">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer congue porttitor sem sit amet consequat. Donec vel lectus leo. In non risus ac lorem lacinia euismod et ultrices sapien. Nam ultrices </div>
    </div>
</div>

</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
B_PatiAuthor Commented:
Solution helped me partially with little changes
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.