HTML CSS examples for CSS Property:padding
Space between elements when padding:0 and margin:0
<html> <head> <style type="text/css"> * {<!--from ww w .ja v a 2 s .c om--> margin:0; padding:0; } span { float:left; } </style> </head> <body> <div style="border-style:solid; border-color:red;height:20px;"> <span>Lo</span> <span style="display:inline-block;border-width:1px;">Lorem</span> </div> </body> </html>