Most of the image gallery display nice little image with a cute description underneath it. If you want to make yours a little better, here’s a quick tutorial on how to improve the the user experience of your image gallery. The concept is easy, each images are displayed but not the text. The text will

13 Najbolj CSS Hack

1. Target IE6, IE7, and IE8 with only 4 znaki (hack) See the source above for a quick explanation. And don’t ask me to explain why 9 works for IE8…but it does. Use these with caution. [css] telo { color: rdeča; /* all browsers, of course */ color : green9; /* IE8 and below */ *color

Resize image and rounded corners using CSS

The idea is to use the background-size: pokrov; CSS property which handles the centering, cropping and, well, covering. Here’s an extract from the fiddle: div.yourWrapper { premer: 50Izberite; višina: 50Izberite; -WebKit-border-radius: 10Izberite; -moz-border-radius: 10Izberite; border-radius: 10Izberite; ozadje: url(‘some_image.jpg’) no-repeat center center; -webkit-background-size: pokrov; -moz-background-size: pokrov; -o-background-size: pokrov; background-size: pokrov; }