Re: Positioning a Widget using CSS

2011-03-23 Thread rjcarr
There are a number of ways to do this depending on your situation.
You should read up on CSS positioning.  Try here:

http://www.w3schools.com/css/css_reference.asp#positioning

Generally, you'll be using the properties such as: text-align,
vertical-align, top, left, and sometimes margin.

Do some experimenting.  Good luck!

On Mar 19, 3:29 pm, Ray Mammola rmamm...@gmail.com wrote:
 How do I control the position of a widget in a LayoutPantel, for
 instance a button or textbox, using CSS?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Positioning a Widget using CSS

2011-03-23 Thread Daniel Renner
Hello,
you can add a Style-Name and format the element with a css-class:

fooButton.setStyleName(test);

CSS file:
.test {
 cssAttribute: value;
}

Maybe you have to add the keyword !importand for attributes that
were set by the gwt-framework.

rjcarrs link will help you to get the right attributes for the
positioning of your elements.

Greetings Daniel

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.