|
Class: CSS_TopMargin (in HTML)
Object
|
+--HTML::CSS_AbstractStyleObject
|
+--HTML::CSS_AbstractStyleProperty
|
+--HTML::CSS_TopMargin
- Package:
- stx:goodies/webServer/htmlTree
- Category:
- Net-Documents-HTML-StyleSheet-Box-MarginAndPadding
- Version:
- rev:
1.11
date: 2018/04/26 10:33:04
- user: cg
- file: HTML__CSS_TopMargin.st directory: goodies/webServer/htmlTree
- module: stx stc-classLibrary: htmlTree
required protocol
-
keyName
-
Return a key name for top-margin.
required-visiting
-
acceptHTMLVisitor: aVisitor
-
visitor pattern: dispatch me to the visitor
Create an empty top-margin:
|margin|
margin := CSS_TopMargin newAuto.
margin htmlString.
|
Create a top-margin with pixel value:
|margin|
margin := CSS_TopMargin with:'10px'.
margin htmlString.
|
Create a top-margin with metric value:
|margin|
margin := CSS_TopMargin with:'5mm'.
margin htmlString.
|
Create a top-margin with percentage value:
|margin|
margin := CSS_TopMargin with:'10%'.
margin htmlString.
|
|