-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I'm trying to align a portal layout into a div which is my home page. I've already tried several aproaches like Borderlayout and Div, but without any success.
I would like to know if there is a way to put the Portal layout at the center of my screen.
Thanks,
Gyo
Gyo,
One suggestion might be to try using the <hbox> component with the pack and align attributes. Something like this:
<zk> <window height="100%" width="100%"> <div height="100%" width="100%"> <hbox width="100%" height="100%" pack="center" align="center"> Portal layout code here </hbox> </div> </window> </zk>
The above will center whatever is within the <hbox> both vertically and horizontally. I do believe you have to set the height / width of the parent components for things to work correctly.
Maybe that will give you a starting point anyway...
Regards,
Todd
Asked: 2011-08-30 14:35:55 +0800
Seen: 260 times
Last updated: Sep 01 '11