org.xwiki.gwt.dom.client
Class Style.Position

java.lang.Object
  extended by org.xwiki.gwt.dom.client.Style.Position
Enclosing class:
Style

public static final class Style.Position
extends java.lang.Object

Standard values for Style.POSITION.


Field Summary
static java.lang.String ABSOLUTE
          An element with position: absolute is positioned at the specified coordinates relative to its containing block.
static java.lang.String FIXED
          An element with position: fixed is positioned at the specified coordinates relative to the browser window.
static java.lang.String RELATIVE
          An element with position: relative moves an element relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position.
static java.lang.String STATIC
          Default.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATIC

public static final java.lang.String STATIC
Default. An element with position: static always has the position the normal flow of the page gives it (a static element ignores any top, bottom, left, or right declarations).

See Also:
Constant Field Values

RELATIVE

public static final java.lang.String RELATIVE
An element with position: relative moves an element relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position.

See Also:
Constant Field Values

ABSOLUTE

public static final java.lang.String ABSOLUTE
An element with position: absolute is positioned at the specified coordinates relative to its containing block. The element's position is specified with the "left", "top", "right", and "bottom" properties.

See Also:
Constant Field Values

FIXED

public static final java.lang.String FIXED
An element with position: fixed is positioned at the specified coordinates relative to the browser window. The element's position is specified with the "left", "top", "right", and "bottom" properties. The element remains at that position regardless of scrolling. Works in IE7 (strict mode).

See Also:
Constant Field Values


Copyright © 2004-2010 XWiki. All Rights Reserved.