Shine Tutorial    
  shinetutorialtopsideimage
HOME DOS OS C,C++ HTML CSS XML JAVA ASP PHP SQL OFFICE MULTIMEDIA MORE... CERTIFICATION ABOUT
 
S T ADVT
TUTORIALS


 

CSS Image Gallery

« Previous Next Chapter »

CSS can be used to create an image gallery.

Klematis
Add a description of the image here
Klematis
Add a description of the image here
Klematis
Add a description of the image here
CssShine
Add a description of the image here

Image Gallery

The following image gallery is created with CSS:

Example

<html>
<head>
<style type="text/css">
div.img
  {
  margin:2px;
  border:1px solid #0000ff;
  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 #0000ff;
  }
div.desc
  {
  text-align:center;
  font-weight:normal;
  width:120px;
  margin:2px;
  }
</style>
</head>
<body>

<div class="img">
  <a target="_blank" href="CssShine1_big.htm">
  <img src="CssShine1_small.jpg" alt="CssShine" width="110" height="90" />
  </a>
  <div class="desc">Add a description of the image here</div>
</div>
<div class="img">
  <a target="_blank" href="CssShine2_big.htm">
  <img src="CssShine_small.jpg" alt="CssShine" width="110" height="90" />
  </a>
  <div class="desc">Add a description of the image here</div>
</div>
<div class="img">
  <a target="_blank" href="CssShine3_big.htm">
  <img src="CssShine3_small.jpg" alt="CssShine" width="110" height="90" />
  </a>
  <div class="desc">Add a description of the image here</div>
</div>
<div class="img">
  <a target="_blank" href="CssShine4_big.htm">
  <img src="CssShine4_small.jpg" alt="CssShine" width="110" height="90" />
  </a>
  <div class="desc">Add a description of the image here</div>
</div>

</body>
</html>

View it »

« Previous Next Chapter »