开发者

CSS Screen Style

开发者 https://www.devze.com 2023-02-26 22:52 出处:网络
By using GWT UiBinder how to fix an image at the bottom of the screen? and h开发者_如何学运维ow to fix an image at the center of the screen? please anyone of you help me.#imageatbottomofscreen{

By using GWT UiBinder how to fix an image at the bottom of the screen? and h开发者_如何学运维ow to fix an image at the center of the screen? please anyone of you help me.


#imageatbottomofscreen{
position:fixed;
bottom:0px;
}
#imageincenterofscreen{
position:absolute;
top:50%;//may not need
left:50%;//these two lines
height:400px;
width:1000px;
margin-left:-500px;//half of width
margin-top:-200px;//half of height
}


If you're using UIBinder I image that you're using a Layout Widget. In that case I would modify the code to use a DockLayoutPanel or some of the VerticalPanel or HorizontalPanel playing with the align property.

Take a look to the official documentation: DevGuideUIPanels

0

精彩评论

暂无评论...
验证码 换一张
取 消