eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_Margin':

Home

everywhere
www.exept.de
for:
[back]

Class: CSS_Margin (in HTML)


Inheritance:

   Object
   |
   +--HTML::CSS_AbstractStyleObject
      |
      +--HTML::CSS_AbstractStyleProperty
         |
         +--HTML::CSS_AbstractStylePropertyBox
            |
            +--HTML::CSS_Margin

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-StyleSheet-Box-MarginAndPadding
Version:
rev: 1.9 date: 2007/11/05 21:10:31
user: cg
file: HTML__CSS_Margin.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Class protocol:

required protocol
o  keyName
Return a key name for margin.


Instance protocol:

required-visiting
o  acceptHTMLVisitor: aVisitor
visitor pattern: dispatch me to the visitor


Examples:


Create an empty margin:


    |margin|
    margin := CSS_Margin newAuto.
    margin printHtmlString.
Create a margin for all sides:


    |margin|
    margin := CSS_Margin 
                  top:    '1%'
                  right:  '2%'
                  bottom: '3%'
                  left:   '4%'.

    margin printHtmlString.
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 printHtmlString.




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 printHtmlString.




ST/X 6.1.1; WebServer 1.620 at exept:8081; Thu, 24 May 2012 16:55:09 GMT