Re: shrinkable/expandable layout with CSS?
- From: Felix Miata <UgaddaBkidding.due2UCE@xxxxxxx>
- Date: Fri, 23 Nov 2007 19:25:35 -0500
On 2007/11/23 15:56 (GMT-0800) Don Li apparently typed:
Honestly have not touched CSS for years, so, back to square one on
this...
What I'd like to do if possible with CSS is this:
create a layout that is shrinkable or expandable when a user drag it,
kind of like a window on a desktop, you can drag it to make it bigger
or smaller... so, the content within would also be proportionally
shrunk or expanded...
Is it possible with CSS? If so, could you show an example?
Thanks.
P.S. I've searched this NG and googled for it to no avail.
I don't know why anyone would think it a good idea. I think it's really dumb
for objects like text and images to vary in size depending on window size.
You could use percentages to size images and containers, but percentages for
fonts apply based upon ancestor font sizes, not container sizes. You'd have
to use something other than CSS for them, like this example:
http://nickcowie.com/ . Note there if your zoom or default font size is more
than nominally larger than about 16px, no matter the window size, it has a
horizontal scrollbar.
What's wrong with sizing based upon font size? That way, with care, you can
maintain good proportions within reasonable ranges of window sizes, as here:
http://mrmazda.no-ip.com/auth/Sites/ksc/
--
" A patriot without religion . . . is as great a
paradox, as an honest man without the fear of God."
John Adams
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://mrmazda.no-ip.com/
.
- Follow-Ups:
- Re: shrinkable/expandable layout with CSS?
- From: Don Li
- Re: shrinkable/expandable layout with CSS?
- From: dorayme
- Re: shrinkable/expandable layout with CSS?
- References:
- shrinkable/expandable layout with CSS?
- From: Don Li
- shrinkable/expandable layout with CSS?
- Prev by Date: shrinkable/expandable layout with CSS?
- Next by Date: Re: shrinkable/expandable layout with CSS?
- Previous by thread: shrinkable/expandable layout with CSS?
- Next by thread: Re: shrinkable/expandable layout with CSS?
- Index(es):
Relevant Pages
|