Using absolute positioning:

This method requires that (1) the container must have dimensions set
(i.e. "width: x% or px or whatever"). (2) the child box has
position:absolute set.
If the above are true, you simply set the left, right, top, bottom,
width and height attributes of the child. Note that IE will give you
some problems sometimes with some of this setup...

On Sep 5, 3:53 pm, Parvez Shah <[email protected]> wrote:
> set MainConatiner.setSpacing /setPadding
> I guess that will help you now you can set Child Container's size as 100%
>
>
>
> On Sun, Sep 6, 2009 at 2:30 AM, David Given <[email protected]> wrote:
>
> > -----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