Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 11-10-2007, 04:39 PM
cbmrj777 Offline
forum loafer
 
Join Date: Nov 2007
Posts: 9
Question [Solved] Thumbnail Row hover image CSS help needed

Photoblog in question: http://photoblog.hoguechronicle.com/

I've been playing around setting up our family photoblog and need a little help:

I've validated the page in CSS (and it checks good except opacity errors) and xhtml validates with 2 errors (which I'm not quite sure how to fix :/)

Anyway, on the HOME/Photo pages, I have the Thumbnail Row. I want the hover effect but with the thumbnails darkened by default, going normal when the mouse hovers over them. In my CSS I have:

Code:
.thumbnails {

	border:1px solid #fff;

	padding:3px;

	margin:3px;

	vertical-align:bottom;

	filter:alpha(opacity=25);

	-moz-opacity:.25;

	opacity:.25;

	}	

.thumbnails:hover {

	border:1px solid #fff;

	padding:3px;

	margin:3px;

	filter:alpha(opacity=100);

	-moz-opacity:1;

	opacity:1;

	}

.current-thumbnail {

	border:1px solid white;

	margin:0 1px 2px 1px;

	filter:alpha(opacity=100);

	-moz-opacity:1;

	opacity:1;

	}
But online (in Firefox) it appears backwards. Would anyone know what might be going on?
__________________
Christine
Hogue Chronicle - family blog
Hogue Photoblog - family photoblog

Last edited by cbmrj777; 11-10-2007 at 07:47 PM. Reason: adding url
Reply With Quote
  #2  
Old 11-10-2007, 04:48 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
If you look at your CSS file, you will find that ".thumbnails {" is listed twice.
(Line #180 & 318)

And the later one, line #318, is overriding the code you have in line #180.

So once you remove the duplicate code, you should be all set.
__________________
Jay Williams | A Different View
Reply With Quote
  #3  
Old 11-10-2007, 04:55 PM
cbmrj777 Offline
forum loafer
 
Join Date: Nov 2007
Posts: 9
Ahhhh, you're right! (too many late nights with a newborn keeps me bleary eyed! LOL)

And that was originally put there for the Archives thumbnails because those I *did* want bright by default...

Since I need 2 different thumbnails attributes what do you think would work best?
__________________
Christine
Hogue Chronicle - family blog
Hogue Photoblog - family photoblog
Reply With Quote
  #4  
Old 11-10-2007, 07:46 PM
cbmrj777 Offline
forum loafer
 
Join Date: Nov 2007
Posts: 9
[Solved] Thumbnail Row hover image CSS help needed

Solved by adding a div to the browse page for those thumbnails:

Code:
#archive_thumbs .thumbnails {
	border:1px solid #fff;
	padding:3px;
	margin:3px;
	vertical-align:middle;
	filter:alpha(opacity=100);
	-moz-opacity:1;
	opacity:1;
}
#archive_thumbs .thumbnails:hover {
	border:1px solid #fff;
	padding:3px;
	margin:3px;
	vertical-align:middle;
	filter:alpha(opacity=25);
	-moz-opacity:.25;
	opacity:.25;
}
and this to the archive browse page:
Code:
<div id="archive_thumbs">
<THUMBNAILS_WHOLE_PAGED></div>
(adding what I did for anyone searching the forums in the future )
__________________
Christine
Hogue Chronicle - family blog
Hogue Photoblog - family photoblog
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:23 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs