Tuesday, November 30, 2010

Re: Help me to get rid of these d... scrollbars!!! :-/

Using the developer tools that come with IE allows you to see what the actual sizes are of each DOM element.

When I need to center an element I apply the following css to its containing element:

            margin-left:auto;
            margin-right:auto;

The above will center its content without having to calculate margin sizes.

Jeff

On Tue, Nov 30, 2010 at 6:43 AM, Magnus <alpineblaster@googlemail.com> wrote:
Well, let me add a note, maybe it is of relevance:

I center the right panel by setting its margins: I compute the
difference between the root panel's width/height and the panel's width/
height and set the margins accordingly. So the whole "thing" (panel
including margins) is as big as the whole browser window. Could this
be the reason, e. g. when there is a +/-1 inexactness?

Magnus

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




--
Jeff Schwartz

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

No comments:

Post a Comment