CSS Pildi-galerii

CSS'i saab kasutada pildi-galerii loomiseks.
Allpool olevas näites on pildi-galerii loodud css'i abil.
Pildi-galerii
Pildi-galerii-2
Pildi-galerii-3
Pildi-galerii-4
Niisugune on pildi-galerii, css kood:
<html> <head> <style type="text/css"> div.img { margin: 2px; border: 1px solid #000000; height: auto; width: auto; float: left; text-align: center; } div.img img { display: inline; margin: 3px; border: 1px solid #ffffff; } div.img a:hover img {border: 1px solid #ff0000;} div.desc { text-align: center; font-weight: normal; width: 120px; margin: 2px; } </style> </head> <body> <div class="img"> <a target="_blank" href="http://pyramdesign.angelfire.com /pic/green-butterfly.png"><img src="http://pyramdesign.angelfire.com /pic/green-butterfly_tn.png" alt="Green Butterfly" width="107" height="90" /></a> <div class="desc">Siia lisa pildi kirjeldus </div> <div class="img"> <a target="_blank" href="http://pyramdesign.angelfire.com /pic/monarh.png"><img src="http://pyramdesign.angelfire.com /pic/monarh_tn.png" alt="Monarh" width="107"height="90" /></a> <div class="desc">Siia lisa pildi kirjeldus </div> <div class="img"> <a target="_blank" href="http://pyramdesign.angelfire.com /pic/Patricia.png"><img src="http://pyramdesign.angelfire.com /pic/Patricia_tn.png" alt="Patricia" width="107" height="90" /></a> <div class="desc">Siia lisa pildi kirjeldus </div> <div class="img"> <a target="_blank" href="http://pyramdesign.angelfire.com /pic/Queen.png"><img src="http://pyramdesign.angelfire.com /pic/Queen_tn.png" alt="Queen" width="107" height="90" /></a> <div class="desc">Siia lisa pildi kirjeldus </div> <div class="img"> <a target="_blank" href="http://pyramdesign.angelfire.com /pic/sakura.png"><img src="http://pyramdesign.angelfire.com /pic/sakura_tn.png" alt="Sakura" width="107" height="90" /></a> <div class="desc">Siia lisa pildi kirjeldus </div> <div class="img"> <a target="_blank" href="http://pyramdesign.angelfire.com /pic/tiger.png"><img src="http://pyramdesign.angelfire.com /pic/tiger_tn.png" alt="Tiger" width="107" height="90" /></a> <div class="desc">Siia lisa pildi kirjeldus </div> </body> </html>

