CSS setting two elements inline within responsive div - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

CSS setting two elements inline within responsive 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">
div {<!--   w  w  w.jav  a2s  .  c  o  m-->
   width:100%;
   display:table;
}

button {
   width:91px;
}

.col {
   display:table-cell;
}

.col input {
   width:100%;
}
</style> 
 </head> 
 <body> 
  <div> 
   <div class="col"> 
    <input type="text"> 
   </div> 
   <div class="col"> 
    <button>Lore</button> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials