It is currently Sat Nov 01, 2014 10:54 am Advanced search

distorted thumbstrip when aligning gallery to right

Help for using the Highslide Editor, the visual way of setting up Highslide.

distorted thumbstrip when aligning gallery to right

Postby mfabes » Tue Jan 10, 2012 6:26 pm

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
mfabes
 
Posts: 21
Joined: Mon Apr 12, 2010 8:10 pm

Re: distorted thumbstrip when aligning gallery to right

Postby EarlyOut » Tue Jan 10, 2012 6:55 pm

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">
User avatar
EarlyOut
 
Posts: 1705
Joined: Sun Nov 11, 2007 11:22 pm
Location: Sector R

Re: distorted thumbstrip when aligning gallery to right

Postby mfabes » Tue Jan 10, 2012 7:22 pm

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!
mfabes
 
Posts: 21
Joined: Mon Apr 12, 2010 8:10 pm

Re: distorted thumbstrip when aligning gallery to right

Postby RoadRash » Tue Jan 10, 2012 8:17 pm

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
RoadRash
 
Posts: 8226
Joined: Tue Jul 15, 2008 8:43 pm
Location: Fredrikstad, Norway

Re: distorted thumbstrip when aligning gallery to right

Postby EarlyOut » Tue Jan 10, 2012 8:27 pm

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! ;)
User avatar
EarlyOut
 
Posts: 1705
Joined: Sun Nov 11, 2007 11:22 pm
Location: Sector R

Re: distorted thumbstrip when aligning gallery to right

Postby mfabes » Tue Jan 10, 2012 9:01 pm

Got it! Thanks so much for your help!
mfabes
 
Posts: 21
Joined: Mon Apr 12, 2010 8:10 pm


Return to Highslide Editor

Who is online

Users browsing this forum: No registered users and 1 guest