mfabes
Posts: 21
Joined: Mon Apr 12, 2010 6:10 pm

distorted thumbstrip when aligning gallery to right

I have tried everything to get this to work correctly. When I align the gallery to be on the right side of my web page and then play the slideshow, the thumbstrip always has 1 image that is larger than the rest and distorted. Can you please look at my page and tell me what I am missing?
http://www.daretodreamstable.com/partnerships.shtml

Down towards the bottom of the page where the horse named "On Your Side" is.

Thanks,

Mike
User avatar
EarlyOut
Posts: 1705
Joined: Sun Nov 11, 2007 9:22 pm
Location: Sector R
Contact: Website

Re: distorted thumbstrip when aligning gallery to right

You appear to be editing the page while I'm trying to look at it, which makes debugging very difficult. But the short answer is that when calling the thumbnail, you shouldn't do this:

Code: Select all

<img src="thumbURL" style="width: 100px; height: 150px">
That louses up the thumbstrip thumbnail. Instead, call it like this:

Code: Select all

<img src="thumbURL" width="100" height="150">
mfabes
Posts: 21
Joined: Mon Apr 12, 2010 6:10 pm

Re: distorted thumbstrip when aligning gallery to right

I'm sorry about that. I stopped editing it. Is the way I have it now ok? It seems to work, but may not be the best of ways to have coded it? I'm sorry....I'm a real novice!
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: distorted thumbstrip when aligning gallery to right

The best is to have it like you have now; no width and height set for the img tag.
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no
User avatar
EarlyOut
Posts: 1705
Joined: Sun Nov 11, 2007 9:22 pm
Location: Sector R
Contact: Website

Re: distorted thumbstrip when aligning gallery to right

There's just one problem with having no width and height specified for an img tag, and that's what happens if the image can't be loaded for some reason. If the img tag has a width and height, the page layout still leaves the same space for the image, and displays the alt text, instead. If there are no width and height specified, and the image can't be loaded, the boxes for the now-missing images are resized to fit the alt text, instead. In some cases, that can louse up a page layout.

So, while width and height aren't required by the specs, I think it's safer to use them. But not in a "style" tag, because of the nasty things that does to poor Highslide JS! ;)
mfabes
Posts: 21
Joined: Mon Apr 12, 2010 6:10 pm

Re: distorted thumbstrip when aligning gallery to right

Got it! Thanks so much for your help!

Return to “Highslide Editor”