HTML CSS examples for CSS Property:padding
CSS paddings and margins when hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> span#logo {<!-- w ww . j av a 2 s .c om--> font-size:3.3em; color:Chartreuse; padding-left:11px; text-shadow:0px 2px 0px white; top:11px; } a#logo { text-decoration:none; color:yellow; margin-top:21px; display:inline-block; } a#logo:hover { padding-top:11px; text-decoration:none; color:blue; } div#header { background-color:pink; width:100%; height:45px; border-bottom-style:solid; border-bottom-width:2px; border-bottom-color:OrangeRed; } </style> </head> <body> <div id="header"> <span id="logo"> <a href="index.php" id="logo" class="menu" rel="menu">Lorem ipsum </a> </span> <span id="sublogo">Lorem ipsum dolor sit ame</span> </div>Lor </body> </html>