Categories
CSS HTML jQuery Tutorials

Image Gallery Using JQuery

For Live Demo: Click here

HTML Code:

Notes:

  • em tag will be added by JQuery inside H2 tag.
  • If you are changing class name or id name, change it in both CSS and HTML code.

Wallpaper :

CSS Code:

body
{
	margin: 0px auto;
	padding: 0;
	width: 620px;
	font-family: verdana;
}

#container
{
	border: 2px solid #999;
}

h1
{
	font-size:15px;
	text-align: center;
}

h2
{
	padding-left: 20px;
	font-size: 14px;
	font-weight: bold;
	color: #333;
}

h2 em
{
	font-size: 13px;
	font-weight: bold;
	color: #666;
}

#largeImage
{
	padding:7px;
	border: 1px solid #999;
}

.thumbs
{
	display: inline;
	padding-left:3px;
}

.thumbs img
{
	padding:7px 8px 5px 7px;
	border: 1px solid #999;
}

.thumbs img:hover
{
	border: 1px solid green;
}

JQuery Code:

 

For Live Demo: Click here

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.