[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lojban] Re: le lisxra cu fanva fo zo'oi.Ceqli.
On Apr 20, 2012, at 5:55, Jonathan Jones wrote:
> On Fri, Apr 20, 2012 at 3:21 AM, Jonathan Jones <eyeonus@gmail.com> wrote:
>> If anyone knows how to make the tiki resize the picture to fit inside the browser window, please fix this.
>>
> And by that, I mean /relative/ resizing. so that if the size of the browser window changes, the picture still takes up the same percentage of the window. (So, assuming the sidebar takes up 200 pixels width and the window is 1000 pixels wide, the picture would be 800 pixels wide. If the window becomes 500 pixels wide, assuming the sidebar doesn't change size, the picture would then be 300 pixels wide.)
The proper way to do this in HTML is to use the CSS width property, like so:
<img src="..." style="width: 100%;">
(That 100% is related to the width of the current region of the page, not the window.) The height automatically scales to match as long as you leave it unspecified.
HOWEVER...
1. I tried to get Tiki to embed that and failed; while its image syntax claims to support a percentage, the resulting HTML has a fixed size and it appears to be something like "percentage of original image size", not CSS percentage.
2. By mucking with the HTML, I found that the wiki has a fixed-width layout (which your original image was simply forcibly spilling out of due to being large); this auto-resizing will simply not have any effect but making the image fit _the wiki theme_. In order to have the image content adapt to the window size, the wiki theme would have to be edited to itself be adaptable.
My recommendation would be to either construct a separate site designed for the comics, or link to the bare image without any page around it; modern browsers will scale the image and allow the user to zoom in and out.
--
Kevin Reid <http://switchb.org/kpreid/>
--
You received this message because you are subscribed to the Google Groups "lojban" group.
To post to this group, send email to lojban@googlegroups.com.
To unsubscribe from this group, send email to lojban+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.