Show a Div vertically with 100% height and border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Border

Description

Show a Div vertically with 100% height and border

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">

html, body {
   height:100%;
}
.verticalDiv {<!--  w  w  w  . ja  v a 2  s .c o  m-->
   position:relative;
   height:100%;
   width: 100%;
}
#Computationdiv {
   height: calc(100% - 100px);
   border: 2px solid;
   border-radius: 25px;
}
button {
   margin-left:15px;
   vertical-align:top;
   font-size:20px;
}


      </style> 
 </head> 
 <body> 
  <div id="verticalDiv" class="verticalDiv"> 
   <img src="https://www.java2s.com/style/demo/Google-Chrome.png" alt="logo"> 
   <button id="Front Desk">Front Desk</button> 
   <button id="Restaurent">Restaurent</button> 
   <button id="HouseKeeping">House Keeping</button> 
   <button id="TravelDesk">Travel Desk</button> 
   <button id="Audit">Audit</button> 
   <button id="Report">Report</button> 
   <div id="Computationdiv"></div> 
  </div>  
 </body>
</html>

Related Tutorials