Advertise Here

Author Topic: [CSS] Image Gallery  (Read 5198 times)

0 Members and 1 Guest are viewing this topic.

Offline MMFWCL

  • SMF For Free Member
  • *
  • Posts: 51
  • http://cpusa.comli.com/index.php
    • View Profile
    • http://cpusa.comli.com/index.php

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
[CSS] Image Gallery
« on: August 24, 2009, 12:38:47 pm »
Note: i obtained the idea from http://www.w3schools.com

Directions:

Go to your AdminCP>Webpage Editor>New Webpage>Find, and click the "HTML" Button>C&P The below code into the text area (AFTER YOUVE OPENED THE HTML BUTTON)


Code: [Select]
<html>
<head>
<style type="text/css">
div.img
{
  margin: 2px;
  border: 1px double black;
  height: auto;
  width: auto;
  float: left;
  text-align: center;
}
div.img img
{
  display: inline;
  margin: 15px;
  border: 1px dotted #ffffff;
}
div.img a:hover img {border: 1px dashed coral;}
div.desc
{
  text-align: center;
  font-weight: normal;
  width: 120px;
  margin: 2px;
}
</style>
</head>
<body>

<div class="img">
 <a target="_blank" href="smfsupport.com"><img src="http://i264.photobucket.com/albums/ii185/jenharsh75/graphics/computerclipart.jpg" alt="Klematis" width="110" height="90" /></a>
 <div class="desc">Add a description of the image here</div>
</div>
<div class="img">
 <a target="_blank" href="smfsupport.com"><img src="http://i264.photobucket.com/albums/ii185/jenharsh75/graphics/computerclipart.jpg" alt="Klematis" width="110" height="90" /></a>
 <div class="desc">Add a description of the image here</div>
</div>
<div class="img">
 <a target="_blank" href="smfsupport.com"><img src="http://i264.photobucket.com/albums/ii185/jenharsh75/graphics/computerclipart.jpg" alt="Klematis" width="110" height="90" /></a>
 <div class="desc">Add a description of the image here</div>
</div>
<div class="img">
 <a target="_blank" href="smfsupport.com"><img src="http://i264.photobucket.com/albums/ii185/jenharsh75/graphics/computerclipart.jpg" alt="Klematis" width="110" height="90" /></a>
 <div class="desc">Add a description of the image here</div>
</div>
<div class="img">
 <a target="_blank" href="smfsupport.com"><img src="http://i264.photobucket.com/albums/ii185/jenharsh75/graphics/computerclipart.jpg" alt="Klematis" width="110" height="90" /></a>
 <div class="desc">Add a description of the image here</div>
</div>
<div class="img">
 <a target="_blank" href="smfsupport.com"><img src="http://i264.photobucket.com/albums/ii185/jenharsh75/graphics/computerclipart.jpg" alt="Klematis" width="110" height="90" /></a>
 <div class="desc">Add a description of the image here</div>
</div>
</body>
</html>


if you know what your doing you should know how to edit this

Credits: 25% Me for editing
75% W3Schools
Need help with something internally with a computer?
http://cpusa.comli.com/index.php

Offline GarryRicketson

  • SMF For Free Member
  • *
  • Posts: 39
    • View Profile
    • GarrysPages

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [CSS] Image Gallery
« Reply #1 on: June 07, 2011, 11:20:33 pm »
Forum Url: http://weeklyqbasicandqb64lesson.smfforfree.com/
Ok, and I got this idea from, the previous post  Posted by: MMFWCL
The code was interesting, so I did a edit and made this,...
Code: [Select]
  <html>
<head>
<style type="text/css">
div.img
{
  margin: 2px;
  border: 1px double black;
  height: auto;
  width: auto;
  float: left;
  text-align: center;
}
div.img img
{
  display: inline;
  margin: 15px;
  border: 1px dotted #ffffff;
}
div.img a:hover img {border: 1px dashed coral;}
div.desc
{
  text-align: center;
  font-weight: normal;
  width: 120px;
  margin: 2px;
}
</style>
</head>
<body>

<div class="img">
 <a target="_blank" href="smfsupport.com"><img src="http://i1140.photobucket.com/albums/n566/GarryRicketson/ghost2.gif" alt="Klematis" width="110" height="90" /></a>
 <div class="desc">This is the Ghost for a Pac Man Game I am working on </div>
</div>
</body>
</html>
 
Note, although most every one probably know this, you don't have to use a web site, to see how this looks or works, just copy the code, paste it into note pad, or what ever editor, save it as a    anyname.html  instead of a text file,and run it with your browser,...
from Garry

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
2744 Views
Last post April 23, 2006, 09:08:19 pm
by LupusWebsite
Gallery

Started by Sassy « 1 2 » General Support

19 Replies
3954 Views
Last post September 17, 2006, 02:01:08 pm
by Sassy
7 Replies
2050 Views
Last post October 01, 2006, 11:44:33 am
by Laugh-nd-kid
8 Replies
2679 Views
Last post April 06, 2008, 06:07:33 pm
by Abstract
2 Replies
2509 Views
Last post November 26, 2008, 03:38:15 pm
by - Lawrence -