-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a recurring problem that keeps hitting me with various projects.
There must be a way around it, but I have yet to find one...

I have a container of a fixed size. I want to put in this another
widget, and have that widget take up all the available space --- *with
its border, padding and margins inside the container*.

This seems to be much harder than it looks. The CSS width and height
properties affect the size of the content, and the border, padding and
margins are always drawn *outside* that box, so just setting the size to
"100%", "100%" results in my widget being slightly larger than its
container. I can't use absolute positioning for this because I don't
know how big anything is in pixels, and CSS doesn't support using things
like "100% - 1em" in a dimension.

This is an utterly basic thing to want, but I have yet to find a way
round it --- what am I missing here?

- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "People who think they know everything really annoy those of us who
│ know we don't." --- Bjarne Stroustrup
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKotFcf9E0noFvlzgRAmbiAJ4mN9mqjfNMpfSlW65z3gFHlxVP/gCglOEY
sDqSWeGk6lEk4jZoVDQASvM=
=Lzdt
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to