Center two list inside ul horizontally - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Center two list inside ul horizontally

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">
.PhNumber_email_list {<!--from w w w.j  a va  2 s .  c o m-->
   display:inline-block;
   clear:both;
   text-align:center;
   padding:11px 0px;
   width:100%;
   margin:0 auto;
   max-width:701px;
   border:3px solid Chartreuse;
}

.PhNumber_email_list li {
   list-style:none;
   display:inline-block;
   margin:6px 21px;
   position:relative;
   text-align:left;
}

.PhNumber_email_list li input {
   border:3px solid yellow;
   width:100%;
   box-sizing:border-box;
   padding:16px 6px;
   color:blue;
   text-align:center;
   font-weight:701;
}
</style> 
 </head> 
 <body> 
  <ul class="PhNumber_email_list"> 
   <li> <input type="text" placeholder="Email"> <p class="hint">Lorem ipsum dolor sit amet, consectet</p> </li> 
   <li> <input type="text" class="PhNumber_mask" placeholder="Phone Number  (Optional)"> <p class="hint">Lorem ipsum dolor sit</p> </li> 
  </ul>  
 </body>
</html>

Related Tutorials