Revision: 11435
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 5, 2009 08:03 by neal_grosskopf
Initial Code
<style type="text/css">
.img
{
display: inline-block;
position: relative;
text-decoration: none;
}
.img img
{
border: 1px solid #cccccc;
padding: 10px;
}
img:hover { border-color: #aaaaaa; }
.img div
{
background: #666666;
color: #ffffff;
opacity: .70;
padding: 3px 0px;
position: absolute;
left: 0px;
bottom: 25px;
text-align: center;
width: 100%;
}
.img:hover div { opacity: .90; }
</style>
<a href="#" class="img">
<img src="http://www.nealgrosskopf.com/images/gallery/thumbs/100_2640.jpg">
<div>Green Plants</div>
</a>
Initial URL
http://www.nealgrosskopf.com/tech/thread.asp?pid=32
Initial Description
A tutorial showing you how to give your images some style using only CSS rather than using Photoshop to give images a border/frame.
Initial Title
CSS Image Framing - An Easy Way To Style Images Using CSS
Initial Tags
css, html, images
Initial Language
CSS