eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::CSS_TopMargin':

Home

everywhere
www.exept.de
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-StyleSheet-Box-MarginAndPadding
Version:
rev: 1.9 date: 2007/11/05 21:11:06
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 printHtmlString.
Create a top-margin with pixel value:


    |margin|
    margin := CSS_TopMargin with:'10px'.
    margin printHtmlString.
Create a top-margin with metric value:


    |margin|
    margin := CSS_TopMargin with:'5mm'.
    margin printHtmlString.
Create a top-margin with percentage value:


    |margin|
    margin := CSS_TopMargin with:'10%'.
    margin printHtmlString.


ST/X 6.1.1; WebServer 1.620 at exept:8081; Fri, 10 Feb 2012 14:38:50 GMT