Make a dialogue box - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

Make a dialogue box

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.box {<!--from   w w  w  . ja  v  a  2  s .co  m-->
   width:401px;
   height:201px;
   margin:21px;
   border:2px solid Chartreuse;
   border-radius:7px;
}

div.box>header {
   height:31px;
   padding:11px;
   background:yellow;
   color:blue;
}

div.box>header>h1 {
   float:left;
   font-size:15px;
   font-weight:normal;
}

div.box>header>a {
   display:inline-block;
   float:right;
   width:12px;
   height:12px;
   margin-top:11px;
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat 0 0;
}

div.box>section {
   padding:11px;
}

div.box>section form, div.box>section fieldset {
   margin:0;
   padding:0;
   border:0;
}
</style> 
 </head> 
 <body> 
  <div class="box"> 
   <header> 
    <h1>Lorem ipsum dolor sit </h1> 
    <a href=""></a> 
   </header> 
   <section> 
    <p>Lorem ipsum dolor sit</p> 
    <form> 
     <fieldset> 
      <label>Lorem ips</label> 
      <input type="text"> 
     </fieldset> 
    </form> 
   </section> 
  </div>  
 </body>
</html>

Related Tutorials