All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.properties.CssMarginLeft
java.lang.Object
|
+----org.w3c.css.properties.CssProperty
|
+----org.w3c.css.properties.CssMarginSide
|
+----org.w3c.css.properties.CssMarginLeft
- public class CssMarginLeft
- extends CssMarginSide
'margin-left'
Value: <length> | <percentage> | auto
Initial: 0
Applies to: all elements
Inherited: no
Percentage values: refer to parent element's width
This property sets the left margin of an element:
H1 { margin-left: 2em }
A negative value is allowed, but there may be implementation-specific limits.
-
CssMarginLeft()
- Create a new CssMarginLeft
-
CssMarginLeft(CssExpression)
- Create a new CssMarginLeft
-
CssMarginLeft(CssMarginSide)
- Create a new CssMarginLeft with an another CssMarginSide
-
addToStyle(CssStyle)
- Add this property to the CssStyle.
-
equals(CssProperty)
- Compares two properties for equality.
-
getPropertyInStyle(CssStyle, boolean)
- Get this property in the style.
-
getPropertyName()
- Returns the name of this property
CssMarginLeft
public CssMarginLeft()
- Create a new CssMarginLeft
CssMarginLeft
public CssMarginLeft(CssMarginSide another)
- Create a new CssMarginLeft with an another CssMarginSide
- Parameters:
- another - The another side.
CssMarginLeft
public CssMarginLeft(CssExpression expression) throws InvalidParamException
- Create a new CssMarginLeft
- Parameters:
- expression - The expression foir this property.
- Throws: InvalidParamException
- Values are incorrect
getPropertyName
public String getPropertyName()
- Returns the name of this property
- Overrides:
- getPropertyName in class CssProperty
addToStyle
public void addToStyle(CssStyle style)
- Add this property to the CssStyle.
- Parameters:
- style - The CssStyle
- Overrides:
- addToStyle in class CssProperty
getPropertyInStyle
public CssProperty getPropertyInStyle(CssStyle style,
boolean resolve)
- Get this property in the style.
- Parameters:
- style - The style where the property is
- resolve - if true, resolve the style to find this property
- Overrides:
- getPropertyInStyle in class CssProperty
equals
public boolean equals(CssProperty property)
- Compares two properties for equality.
- Parameters:
- value - The other property.
- Overrides:
- equals in class CssProperty
All Packages Class Hierarchy This Package Previous Next Index