eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_Margin':

Home

Documentation
www.exept.de
Everywhere
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-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

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


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 02:17:09 GMT