Nowrap item overflowing its box - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

Nowrap item overflowing its 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">
ul {<!-- w  w w.j a va2  s.c o m-->
   display:inline-block;
   padding:0;
   margin:0;
}

li {
   padding:2ex 2em;
   border-bottom:2px dashed Chartreuse;
   list-style-type:none;
   white-space:nowrap;
   font-size:3em;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>Lore</li> 
   <li>Lorem i</li> 
   <li>Lorem ipsum</li> 
  </ul>  
 </body>
</html>

Related Tutorials