PDA

View Full Version : Html page - Allen's code won't hide my photo - why?


jenswrens
Mar-10-2009, 04:59 PM
So I finally managed to make an html only page with a clickable photo link (http://jenswrens.smugmug.com/gallery/7476806_pn3hY)that works (using a combination of Allen's code from here (http://allen-steve.smugmug.com/gallery/2224895_3bpro) and this page (http://allen-steve.smugmug.com/gallery/3819841)).

For some reason, the css code won't hide the photo that I have in the gallery. And if I remove the photo from the gallery, it shows up as an empty gallery. What gives?

I did two other html only galleries (galleryA (http://jenswrens.smugmug.com/gallery/7407621_rVbnw) and gallery2 (http://jenswrens.smugmug.com/gallery/7406844_qirQD/1/477226283_zQ7Pa)) where the exact same code hides the photos perfectly.

Can someone check out the problem with the first gallery and please help me fix it so that the photos at the bottom are hidden?

Thanks!

jfriend
Mar-10-2009, 05:18 PM
You have an extra </div> somewhere in your custom HTML that is messing up the page structure and making it so the CSS can't do it's job. Check to make sure what you have pasted in their has one and only one </div> for every <div>.

jenswrens
Mar-10-2009, 05:53 PM
You have an extra </div> somewhere in your custom HTML that is messing up the page structure and making it so the CSS can't do it's job. Check to make sure what you have pasted in their has one and only one </div> for every <div>.

:clap What a genius!!! :-) Not only did I have one extra </div>, I had THREE extras!! Now it works like a charm.

Gosh I love this forum! Thanks so much!