standard.cssContainer

description

Applies the CSS style(s) to the container’s element.

syntax

getX(ELEMENT_NAME).cssContainer(styleName, style)

What does getX() mean?

  • styleName :
  • style :

alternate(s)

  • getX(ELEMENT_NAME).cssContainer({"style name 1": "style 1", "style name 2": "style 2"})

notes

  • This will affect both the element itself and any element wrapping it as added via .before or .after.

  • This command often more closely accomplishes what you want to achieve than the .css command.


example(s)


@newText("frame", " world")
@    .before( newText("Hello ") )
@    .css("border", "solid 1px black")
$    .cssContainer("border", "solid 1px red")
@    .print()
  • Prints the text world preceded with the text Hello and adds a black frame around world and a red frame around the whole Hello world text.