eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_Padding':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: CSS_Padding (in HTML)


Inheritance:

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

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-HTML-StyleSheet-Box-MarginAndPadding
Version:
rev: 1.11 date: 2018/04/26 10:33:13
user: cg
file: HTML__CSS_Padding.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Class protocol:

required protocol
o  keyName
Return a key name for padding.


Instance protocol:

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


Examples:


Create an empty padding:
    |padding|
    padding := CSS_Padding newAuto.
    padding htmlString.
Create a padding for all sides:
    |padding|
    padding := CSS_Padding with:'1 cm'.

    padding htmlString.
Create a padding for different sides:
    |padding|
    padding := CSS_Padding 
                  top:    '1%' 
                  right:  '2%'
                  bottom: '3%'
                  left:   '4%'.

    padding htmlString.
Create a padding with top-left identical values: (This one will reduce to top-left)
    |padding|
    padding := CSS_Padding 
                  top:    '1%'
                  right:  '2%'
                  bottom: '1%'
                  left:   '2%'.

    padding htmlString.


Create a padding with identical values:
(This one will reduce to onme value)
    |padding|
    padding := CSS_Padding 
                  top:    '4px'
                  right:  '4px'
                  bottom: '4px'
                  left:   '4px'.

    padding htmlString.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 11:11:32 GMT