HTML CSS examples for CSS Widget:Image
Box model for button underneath image
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #profile-grid {<!-- w w w .j a v a 2 s.c o m--> height:303px; width:331px; } #profile-grid img { display:block; width:100%; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px; } #listed { height:51px; border:2px solid Chartreuse; overflow:hidden; } li.item { margin:0px; display:inline; float:left; height:51px; border-left:2px solid yellow; display:inline; } #listed li a { display:block; font-family:"lucida grande",tahoma,verdana,arial,sans-serif; font-size:16px; color:blue; line-height:51px; padding:0px 16px 0; text-align:center; text-decoration:none; vertical-align:baseline; } #listed li a:hover { font-family:"lucida grande",tahoma,verdana,arial,sans-serif; font-size:16px; color:pink; background-color:OrangeRed; text-align:center; text-decoration:none; } </style> </head> <body> <div id="profile-grid"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> <ul id="listed"> <li class="item"> <a href="#">Lorem ips</a> </li> <li class="item"> <a href="#">Lorem i</a> </li> <li class="item"> <a href="#">Lorem ip</a> </li> <li class="item"> <a href="#">Lorem ipsum</a> </li> </ul> </div> </body> </html>