The code below displays a login box in the upper left hand corner of a Browser, but I would like to display it in the center.
I have read various topics on how to center using CSS style elements and the cell element, but they are not working. Maybe I am doing something wrong.
I am just starting to learn UiBinder so excuse my bad style.
Any help would be appreciated, thank you.
Here is the code:
<ui:style>
buttonsDiv{
float: right;
margin-top: 20px;
}
</ui:style>
<g:DialogBox text="Instructor Registration">
<g:HTMLPanel>
<g:HTMLPanel styleName='buttonsDiv'>
<g:Label>First Name</g:Label>
<g:TextBox></g:TextBox>
</g:HTMLPanel>
<g:HTMLPanel styleName='buttonsDiv'>
<g:Label>Last Name</g:Label>
<g:TextBox></g:TextBox>
</g:HTMLPanel>
<g:HTMLPanel styleName='buttonsDiv'>
<g:Label>Institution</g:Label>
<g:TextBox></g:TextBox>
</g:HTMLPanel>
<g:HTMLPanel styleName='buttonsDiv'>
<g:Label>Department</g:Label>
<g:TextBox></g:TextBox>
</g:HTMLPanel>
<g:HTMLPanel styleName='buttonsDiv'>
<g:Button ui:field="submit">Submit</g:Button>
<g:Button ui:field="goBack">Cancel</g:Button>
</g:HTMLPanel>
</g:HTMLPanel>
</g:DialogBox>
DialogBox, that has acenter()method, could you call that when showing this? - Marconius