Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo
- - - - -

Css For Thumbnails


  • Please log in to reply
8 replies to this topic

#1 Lastzion

Lastzion

    HR 3

  • Active Members
  • PipPipPip
  • 88 posts

Posted 06 May 2005 - 12:53 PM

I have started my first full css site and so far it is going pretty good.

Now, I want to insert 3 rows, 5 pictures in a row of thumbnails...

This is what I have come up with so far:

HTML

<dl class="gallery">
<dt><a ref="images/image1-big.jpg"><img src="images/image1.jpg" alt=""></a></dt>
<dt>Title here</dt>
<dd>Description here</dd>
</dl>
<dl class="gallery">
<dt><img src="<a ref="images/image3-big.jpg"><img src="images/image3.jpg" alt=""></a>" alt=""></dt>
<dt>Title here</dt>
<dd>Description here</dd>
</dl>
<dl class="gallery">
<dt><a ref="images/image2-big.jpg"><img src="images/image2.jpg" alt=""></a></dt>
<dt>Title here</dt>
<dd>Description here</dd>
</dl>


CSS

dl.gallery
{
border: 1px solid #000;
background-color: #ddd;
width: 102px;
text-align: center;
padding: 10px;
float: left;
margin-right: 1em;
}

.gallery dt { font-weight: bold; }

.gallery dt img
{
border: 1px solid #000;
width: 100px;
height: 100px;
}

.gallery dd
{
margin: 0;
padding: 0;
}




The problem is: when you mouseover the images - a shadow comes up, like a button effect, but it won't hyperlink to a larger image...

Any ideas??

#2 qwerty

qwerty

    HR 10

  • Moderator
  • 8,292 posts
  • Location:Somerville, MA

Posted 06 May 2005 - 01:11 PM

Are you copying the code directly from your source, or did you type it into your post? I ask because you've got this:
<dt><img src="<a ref="images/image3-big.jpg"><img src="images/image3.jpg" alt=""></a>" alt=""></dt>

and that ought to be
<dt><a href="images/image3-big.jpg"><img src="images/image3.jpg" alt=""></a></dt>

In fact, all of your links here are coded as a ref="" instead of a href=""

#3 Lastzion

Lastzion

    HR 3

  • Active Members
  • PipPipPip
  • 88 posts

Posted 06 May 2005 - 01:39 PM

o MANNNNNNNNNN!!!!!!!!!!!!!!!!!!!!!!

lol

Thank you Thank you! Sometimes you just need fresh eyes;)

---------------------------

#4 qwerty

qwerty

    HR 10

  • Moderator
  • 8,292 posts
  • Location:Somerville, MA

Posted 06 May 2005 - 01:57 PM

If it works, let me know. There's a site I'm planning on taking out of tables soon, and I was wondering how I was going to deal with the thumbnail pages smile.gif

#5 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 5,881 posts
  • Location:Blackpool UK

Posted 06 May 2005 - 02:21 PM

biggrin.gif I've already been playing for a friends photographic site

CSS Photo Gallery or Photo Gallery Two XHTML strict as well.

#6 maleman

maleman

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 677 posts

Posted 06 May 2005 - 09:14 PM

You folks just gave me the inspiration to finally get into xhtml.

#7 Lastzion

Lastzion

    HR 3

  • Active Members
  • PipPipPip
  • 88 posts

Posted 10 May 2005 - 01:03 PM

Qwerty - it works perfect!

I'm so happy I switched to css and xml biggrin.gif

#8 leadegroot

leadegroot

    Lea de Groot

  • Active Members
  • PipPipPipPipPip
  • 488 posts
  • Location:Brisbane, Australia

Posted 10 May 2005 - 04:07 PM

Free eyeballs found at the W3C validator - http://validator.w3.org/ . The validator will pick up exactly that kind of blind spot error and its very easy to shove your code through it, saving you from going Doh! in public wink.gif

#9 Lastzion

Lastzion

    HR 3

  • Active Members
  • PipPipPip
  • 88 posts

Posted 11 May 2005 - 12:12 PM

QUOTE(leadegroot @ May 10 2005, 04:07 PM)
Free eyeballs found at the W3C validator - http://validator.w3.org/ . The validator will pick up exactly that kind of blind spot error and its very easy to shove your code through it, saving you from going Doh! in public wink.gif
View Post


Great Link! I use it daily:)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users