I'm still learning myself, I just started doing HTML / CSS about two weeks ago, but it seems to work just fine with hover, click, description field, title and center image.
You can put CSS code in a separate stylesheet. I thought I would keep them together for publication.
<!DOCTYPE html> <html> <head> <style> body { background-color:black; color:white; } #container { width:18em; height:18em; } #title-image { background-image:url('http://www.gravatar.com/avatar/cd1954c9caf7ffc02ab18137967c4bc9?s=32&d=identicon&r=PG'); background-repeat:no-repeat; background-position:center; border:1px solid RGBa(255, 255, 255, 0.1); background-color:RGBa(127, 127, 127, 0.1); color:#CFCFCF; width:10em; height:10em; margin-left: 3.9375em; margin-right: 4em; text-align:center; display: block; } #title-image:hover { border:1px solid RGBa(255, 255, 255, 0.15); background-color:RGBa(127, 127, 127, 0.15); color:#FFFFFF; } #description { width: 18em; border:1px solid RGBa(255, 255, 255, 0.03); background-color:RGBa(127, 127, 127, 0.03); text-align:center; display: block; } </style> </head> <body> <div id="container"> <a href="google.com" id="title-image">This is your Title?</a> <p id="description">Your description<br>Can go here.</p> </div> </body> </html>
source share