Create shape from two div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Create shape from two div

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">
#ingredient {<!--from  www.j a v  a  2 s  .c  om-->
   position:absolute;
   top:20%;
   left:14%;
   height:41%;
   width:41%;
}

#ingredient ul {
   padding:2em;
   margin-left:0;
   list-style:square;
   text-decoration:none;
   column-count:auto;
   list-style-position:inside;
   height:41%;
}

h1 {
   margin:0;
   padding-top:2em;
   line-height:0;
}

#direction {
   position:absolute;
   top:90%;
   left:14%;
   width:86%;
}

#video {
   position:absolute;
   top:20%;
   left:61%;
}

ol {
   padding:2em;
   margin-left:0;
   text-decoration:none;
}

body {
   background-color:Chartreuse;
   padding:0;
   margin:0;
   border:0;
   overflow:auto;
}

#header {
   background-color:yellow;
   position:fixed;
   border-bottom:solid blue;
   border-right:solid pink;
   border-bottom-right-radius:26px;
   width:51%;
   height:16%;
   top:0;
   left:0;
   z-index:100;
}

#nav {
   background-color:OrangeRed;
   position:fixed;
   border-right:solid grey;
   border-bottom:solid BlueViolet;
   border-bottom-right-radius:26px;
   width:13%;
   height:27%;
   top:16%;
   left:0;
   z-index:1000;
   padding:0;
   margin:0;
}
</style> 
 </head> 
 <body> 
  <div id="header"> 
  </div> 
  <div id="nav"> 
  </div> 
  <div id="ingredient"> 
   <h1>Lorem ipsum</h1> 
   <ul> 
    <li>Lorem ipsum dolor sit a</li> 
    <li>Lorem ipsum do</li> 
    <li>Lorem ipsum dolor sit amet, consectetur adipis</li> 
    <li>Lorem ipsum dolor sit amet, consectetur adipisci</li> 
    <li>Lorem ipsum dolor sit amet, consectetur a</li> 
   </ul> 
  </div> 
  <div id="direction"> 
   <h1>Lorem ipsu</h1> 
   <ol> 
    <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque,</li> 
    <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium</li> 
    <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec</li> 
   </ol> 
  </div>  
 </body>
</html>

Related Tutorials