CSS align 2 img with links and form - HTML CSS CSS Form

HTML CSS examples for CSS Form:Form

Description

CSS align 2 img with links and form

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">
.menu {<!--from  ww  w .j  a v a 2s.  c o  m-->
   width:1001px;
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   background-repeat:repeat-x;
   background-color:Chartreuse;
   height:41px;
   line-height:41px;
   font-family:sans-serif, Verdana, Arial, Helvetica;
   font-size:13pt;
   color:yellow;
}

#left {
   float:left;
}

#right {
   float:right;
}
</style> 
 </head> 
 <body> 
  <div class="menu"> 
   <div id="left"> 
    <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> 
    <a href="">Lorem </a>Lor 
    <a href="">Lorem </a>Lor 
    <a href="">Lorem </a> 
   </div> 
   <div id="right"> 
    <input type="text"> 
    <select> <option>Lore</option> <option>Lore</option> </select> 
    <img src="https://www.java2s.com/style/demo/Opera.png"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials