001 package com.osbcp.css.constants; 002 003 import java.io.Serializable; 004 005 /** 006 * Values for the <i>position</i> property. 007 * 008 * @see <a href="http://www.w3schools.com/cssref/pr_class_position.asp">CSS position Property</a> 009 * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a> 010 */ 011 012 public enum Position implements Serializable { 013 014 /** 015 * The element is positioned relative to its first positioned (not static) ancestor element. 016 */ 017 ABSOLUTE, 018 019 /** 020 *The element is positioned relative to the browser window. 021 */ 022 FIXED, 023 024 /** 025 * The element is positioned relative to its normal position, so "left:20" adds 20 pixels to the element's LEFT position. 026 */ 027 RELATIVE, 028 029 /** 030 * Elements renders in order, as they appear in the document flow. This is default. 031 */ 032 STATIC, 033 034 /** 035 * The value of the position property is inherited from the parent element. 036 */ 037 INHERIT; 038 039 @Override 040 public String toString() { 041 return name().toLowerCase(); 042 } 043 044 }