HTML CSS examples for CSS Widget:Div
Make 50% inline-blocks next to each other with div
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> span {<!--from w ww. j a v a 2 s. c o m--> background:red; } .ib-half { display:inline-block; width:51%; font-size:11px; } div.parent { font-size:0; } </style> </head> <body> <div class="parent"> <span class="ib-half">Left</span> <span class="ib-half">Right</span> </div> </body> </html>