Hi,
I want to start my application with a login panel in the center of the browser screen. What's the -easiest- way to do that?
Regards, Harry
panel centered in screen
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 118
- Joined: Tue Oct 23, 2012 7:01 am
- Location: The Netherlands
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
There's more than one way to do this. One easy way is to set the layout of the root control (the Page Control) to Vertical Box then click Layout Properties and set both horizontal alignment properties to Center. If you don't have anything declaring a specific page width e.g. a body style, this should work OK.
Regards
Jon
Regards
Jon
0 x
-
- Ebase User
- Posts: 118
- Joined: Tue Oct 23, 2012 7:01 am
- Location: The Netherlands
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Vertical alignment is harder because it needs an explicit height specification e.g. set up a Panel and give it a height of say 800px, then you can see that a vertical alignment of Center will work (tip: set a background colour so you can see what's happening). This works with an explicit height, but if you change this to a height of 100% it doesn't work; this is because 100% means 100% of the parent HTML element and so on back to the body tag. So without an explicit height set somewhere, it doesn't do anything. There may be a clever CSS way of setting the height to the current window height, but I don't know how to do this.
Regards
Jon
Regards
Jon
0 x
-
- Ebase User
- Posts: 118
- Joined: Tue Oct 23, 2012 7:01 am
- Location: The Netherlands
Who is online
Users browsing this forum: Google [Bot] and 7 guests