eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_TopMargin':

Home

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

Class: CSS_TopMargin (in HTML)


Inheritance:

   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

Class protocol:

required protocol
o  keyName
Return a key name for top-margin.


Instance protocol:

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


Examples:


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.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 05:40:21 GMT