[dokuwiki] Re: Request for an improvement - allow % sizes for images - please!

  • From: Michael Haschke <michael.haschke@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 17 Feb 2011 21:40:50 +0100

Hi,

2011/2/17 Mike "Pomax" Kamermans <pomax@xxxxxxxxxxxxxxxxxxxx>:
> Instead, the browser will load the image, sees that it's, say, 25000 pixels
> by 10000 pixels, sees the CSS "width: 50%" rule, and proceeds to resize the
> image as you instruct, downsizing it to 12500 x 5000 pixels. This is not
> what you want, from what I can tell.

Wrong, the 50% leads to a size of 50% of the parental (block) element.
Chris, just add a #content img {max-width:50%;} (or 100%, just like
what you want) to your CSS, this will work as long as you don't use
MSIE6-.

cheers...
Haschek

-- 
Portfolio: http://eye48.com/
FOAF/WebID: http://michael.haschke.biz/
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: