|
Class: CSS_Margin (in HTML)
Object
|
+--HTML::CSS_AbstractStyleObject
|
+--HTML::CSS_AbstractStyleProperty
|
+--HTML::CSS_AbstractStylePropertyBox
|
+--HTML::CSS_Margin
- Package:
- stx:goodies/webServer/htmlTree
- Category:
- Net-Documents-HTML-StyleSheet-Box-MarginAndPadding
- Version:
- rev:
1.11
date: 2018/04/26 10:33:22
- user: cg
- file: HTML__CSS_Margin.st directory: goodies/webServer/htmlTree
- module: stx stc-classLibrary: htmlTree
required protocol
-
keyName
-
Return a key name for margin.
required-visiting
-
acceptHTMLVisitor: aVisitor
-
visitor pattern: dispatch me to the visitor
Create an empty margin:
|margin|
margin := CSS_Margin newAuto.
margin htmlString.
|
Create a margin for all sides:
|margin|
margin := CSS_Margin
top: '1%'
right: '2%'
bottom: '3%'
left: '4%'.
margin htmlString.
|
Create a margin with top-left identical values:
(This one will reduce to top-left)
|margin|
margin := CSS_Margin
top: '1%'
right: '2%'
bottom: '1%'
left: '2%'.
margin htmlString.
|
Create a margin with identical values:
(This one will reduce to onme value)
|
|margin|
margin := CSS_Margin
top: '4px'
right: '4px'
bottom: '4px'
left: '4px'.
margin htmlString.
|
|