Break span-element inline-block overflow inside container - HTML CSS CSS Property

HTML CSS examples for CSS Property:overflow

Description

Break span-element inline-block overflow inside container

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">
.container {<!--from  ww w .  j a  v a 2  s .  com-->
   display:block;
   width:201px;
   flex-wrap:wrap;
   border:2px solid Chartreuse;
   padding:11px;
}

.item {
   display:inline;
   background:yellow;
   margin-right:6px;
   border:3px solid yellow;
   line-height:3;
   text-decoration:none;
}
</style> 
 </head> 
 <body> 
  <span class="container"> <a href="#" id="item1" class="item">Lorem ipsum</a> <a href="#" id="item2" class="item">Lorem ipsum</a> <a href="#" id="item3" class="item">Lorem ipsum</a> </span>  
 </body>
</html>

Related Tutorials