mc-thumbnail-max-width won't permit % units?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Phlawm53
Sr. Propeller Head
Posts: 442
Joined: Tue Mar 16, 2010 10:58 am
Location: San Francisco, CA
Contact:

mc-thumbnail-max-width won't permit % units?

Post by Phlawm53 »

------
For Flare 11, although my question also applies to V12.

It appears, at least in V11, that one cannot specify percentage units for mc-thumbnail-max-width?

For example, this CSS creates functional thumbnails that enlarge on hover:

Code: Select all

img.Screenshots01
{
  mc-thumbnail: hover;
  mc-thumbnail-max-width: 50em;
  mc-thumbnail-max-height: auto;
}
But if I change mc-thumbnail-max-width to be a percentage (%), then the thumbnails no longer work.

I'd much prefer to be able to scale thumbnails as a percentage of a container rather than as "hard" units; em being a "hard" unit insofar as it defines a quantity rather than a size in relationship to its XHTML parent such as a DIV.

I wonder if this might have been addressed in V12?

Cheers & thanks for your help,
Riley
SFO
pacdam
Propeller Head
Posts: 10
Joined: Wed Mar 23, 2016 9:27 am

Re: mc-thumbnail-max-width won't permit % units?

Post by pacdam »

Hi all,

Because we have a div taking up 25% of real estate to the right of the screen, I'd also love to have a mc-thumbnail-max-width with a percentage value.

Has anyone found a workaround for this, given that it still isn't possible to just write mc-thumbnail-max-width: 75%; ?

Thanks,
Stuart
Post Reply