Create resizable border between two divs - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Border

Description

Create resizable border between two divs

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

div#wrapper{<!--from   ww w.  j  a  va 2 s.  c o  m-->
   position:absolute;
   top:25%;
   height: 75%;
   width:100%;
}
div#leftsidebar{
   width:19.87%;
   height:100%;
   min-width:200px;
   float:left;
}
div#main{
   height:96%;
   font-size:1.2em;
   border-left-color:black; 
   border-left-style:solid;
   border-left-width:3px;
   overflow:hidden;
   padding-bottom:2%;
}


      </style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="leftsidebar"> 
    <form id="logoutForm" action="index.html"> 
     <h1 id="login_title">Logout</h1> 
     <fieldset id="actions"> 
      <input id="logout" type="submit" value="Log out"> 
     </fieldset> 
    </form> 
   </div> 
   <div id="main"> 
    <span id="location">Home</span> 
    <a href="member_news.html" class="normal_link">News</a> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials