001 package com.osbcp.css.constants; 002 003 import java.io.Serializable; 004 005 /** 006 * Values for the <i>float</i> property. 007 * 008 * @see <a href="http://www.w3schools.com/cssref/pr_class_float.asp">http://www.w3schools.com/cssref/pr_class_float.asp</a> 009 * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a> 010 */ 011 012 public enum Float implements Serializable { 013 014 /** 015 * The element floats to the left. 016 */ 017 018 LEFT, 019 020 /** 021 * The element floats the right. 022 */ 023 024 RIGHT, 025 026 /** 027 * The element is not floated, and will be displayed just where it occurs in the text. This is default. 028 */ 029 030 NONE, 031 032 /** 033 * Specifies that the value of the float property should be inherited from the parent element. 034 */ 035 036 INHERIT; 037 038 @Override 039 public String toString() { 040 return name().toLowerCase(); 041 } 042 043 }