HTML CSS examples for CSS Widget:Div Border
Adding css border for inside div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .outerDiv{<!--from w ww . j a v a2 s.c o m--> display:table; } .outerDiv > div{ display:table-cell; padding:0 20px; } .leftDiv{} .centerDiv{border-left:1px solid red;} .rightDiv{border-left:1px solid red;} </style> </head> <body> <div class="outerDiv"> <div class="leftDiv"> First </div> <div class="centerDiv"> <div class="divContent"> inside1 </div> <div class="divContent"> inside2 </div> <div class="divContent"> inside3 </div> </div> <div class="rightDiv"> Third </div> </div> </body> </html>