HTML CSS examples for CSS Widget:Hover
On hover add padding bottom not moving rest of elements
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <style id="compiled-css" type="text/css"> header {<!-- ww w.ja v a 2s. c o m--> position:relative; height:201px; border-bottom:2px solid Chartreuse; } header .actionsWrap { position:absolute; bottom:0; } header .actionsWrap .actions { position:relative; } header .actionsWrap .actions div { position:relative; float:left; } header .actionsWrap .actions div a { padding:16px; text-align:center; display:block; } header .actionsWrap .actions div a:hover { padding-bottom:31px; display:inline; } header .actionsWrap .actions .search { color:yellow; background-color:blue; } header .actionsWrap .actions .help { color:pink; background-color:OrangeRed; } header .actionsWrap .actions .call { color:grey; background-color:BlueViolet; } </style> </head> <body> <header> <div class="container"> <div class="actionsWrap"> <div class="actions"> <div> <a class="search fa fa-2x fa-search" href="" alt="" title=""></a> </div> <div> <a class="help fa fa-2x fa-question" href="" alt="" title=""></a> </div> <div> <a class="call fa fa-2x fa-phone" href="" alt="" title=""></a> </div> </div> </div> <img class="logo" src="https://www.java2s.com/style/demo/InternetExplorer.png" alt=""> </div> </header> </body> </html>