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!
More SEO Content
International SEM | Social Media | Search Friendly Design | SEO | Paid Search / PPC | Seminars | Forum Threads | Q&A | Copywriting | Keyword Research | Web Analytics / Conversions | Blogging | Dynamic Sites | Linking | SEO Services | Site Architecture | Search Engine Spam | Wrap-ups | Business Issues | HRA Questions | Online Courses
Css For Thumbnails
Started by
Lastzion
, May 06 2005 12:53 PM
8 replies to this topic
#1
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??
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
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=""
<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
Posted 06 May 2005 - 01:39 PM
o MANNNNNNNNNN!!!!!!!!!!!!!!!!!!!!!!
lol
Thank you Thank you! Sometimes you just need fresh eyes;)
---------------------------
lol
Thank you Thank you! Sometimes you just need fresh eyes;)
---------------------------
#4
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
#5
Posted 06 May 2005 - 02:21 PM
CSS Photo Gallery or Photo Gallery Two XHTML strict as well.
#6
Posted 06 May 2005 - 09:14 PM
You folks just gave me the inspiration to finally get into xhtml.
#7
Posted 10 May 2005 - 01:03 PM
Qwerty - it works perfect!
I'm so happy I switched to css and xml
I'm so happy I switched to css and xml
#8
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
#9
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 
Great Link! I use it daily:)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









