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 Object

Standard values for Style.POSITION.


Field Summary
static String ABSOLUTE
          An element with position: absolute is positioned at the specified coordinates relative to its containing block.
static String FIXED
          An element with position: fixed is positioned at the specified coordinates relative to the browser window.
static 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 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 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 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 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 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–2014 XWiki. All rights reserved.