Xbasic

CSS::StyleDef Class

IN THIS PAGE

Description

Properties and methods in the CSS::StyleDef Class.

Properties

text_indentCharacter

The text_indent attribute specifies the indentation of the first line in a text-block.

text_alignCharacter

The text_align attribute specifies the horizontal alignment of text in an element

text_decorationCharacter

The text_decoration attribute specifies the decoration added to text (overline, underline, blink etc).

text_transformCharacter

The text_transform attribute controls the capitalization of text (none, capitalize, uppercase, lowercase, inherit).

text_shadowCharacter

The text_shadow attribute controls text shadow (horizontal-size vertical-size [blur] color).

letter_spacingCharacter

The letter_spacing attribute controls the space between characters in a text.

word_spacingCharacter

The word_spacing attribute controls the white space between words.

white_spaceCharacter

The white_space attribute specifies how white-space inside an element is handled (normal, nowrap, pre, pre-line, pre-wrap, inherit)

colorCharacter

Text color for element

background_colorCharacter

background color for element

background_imageCharacter

background image for element

background_repeatCharacter

repeat background image (i.e. repeat-x)

background_positionCharacter

position of background image

background_attachmentCharacter

Defines if the background image is fixed, or scrolls with the page (default is scroll).

background_sizeCharacter

background_size property

font_familyCharacter

Name for font

font_sizeCharacter

Font size in points

font_styleCharacter

Font style (i.e. italic)

font_weightCharacter

Font weight (i.e. bold)

font_variantCharacter

Specify variant of font, i.e. small-caps.

border_styleCharacter

Border style for element

border_widthCharacter

Width of element border

border_colorCharacter

Color of border element.

border_top_styleCharacter

Top border style (if different that default border)

border_top_widthCharacter

Top border line width (if different that default border width)

border_top_colorCharacter

Top border color (if different that the default border color)

border_left_styleCharacter

Left border style (if different that default border)

border_left_widthCharacter

Left border line width (if different that default border width)

border_left_colorCharacter

Left border color (if different that default border)

border_right_styleCharacter

Right border style (if different that default border)

border_right_widthCharacter

Right border line width (if different that default border width)

border_right_colorCharacter

Right border color (if different that default border)

border_bottom_styleCharacter

Bottom border style (if different that default border)

border_bottom_widthCharacter

Bottom border line width (if different that default border width)

border_bottom_colorCharacter

Bottom border color (if different that default border)

paddingCharacter

Padding on interior of element.

padding_topCharacter

Padding on interior top of element.

padding_leftCharacter

Padding on interior left of element.

padding_rightCharacter

Padding on interior right of element.

padding_bottomCharacter

Padding on interior bottom of element.

marginCharacter

Margin on exterior of element.

margin_topCharacter

Margin on exterior top of element.

margin_leftCharacter

Margin on exterior left of element.

margin_rightCharacter

Margin on exterior right of element.

margin_bottomCharacter

Margin on exterior bottom of element.

displayCharacter

Define how element should be displayed (i.e. inline,table etc - how object flows)

visibilityCharacter

Don't show element, even if it takes space on on the page.

floatCharacter

Align an element on the page (i.e. left, right)

clearCharacter

Start new floating elements on specified side (right, left, both).

overflowCharacter

Overflow occurs when element doesn't fit (hidden, scroll, auto).

vertical_alignCharacter

The vertical-align property of the element (top/bottom/%)

cursorCharacter

Cursor to display when element is hovered over.

positionCharacter

Positioning to use (relative, absolute).

topCharacter

Top position of element.

leftCharacter

left position of element.

rightCharacter

Right position of element.

bottomCharacter

Bottom position of element.

widthCharacter

Width of element, does not include padding, borders or margins.

heightCharacter

Height of element, does not include padding, borders or margins.

line_heightCharacter

Line height specifies the height of each line of text inside an element.

z_indexCharacter

Z_index indicates the position back-to-front (the z-index with the highest value appears in front of all other elements) in the stack of elements.

list_style_typeCharacter

Style of a list (unordered - disc or ordered - decimal are examples of this).

list_style_imageCharacter

Optional image to specify the list marker.

list_style_positionCharacter

Position of the list item marker (outside of inside the list elements).

table_layoutCharacter

The table layout algorithm to use - auto = based on content, fixed = specified from table or column element width.

caption_sideCharacter

Side captions appear for table (top - default, bottom - caption appears below table).

border_collapseCharacter

Do borders appear collapsed for a table, or detached.

border_spacingCharacter

Space between adjacent borders.

empty_cellsCharacter

Set if empty cells should have borders.

row_spanCharacter

Element should span specified number of rows.

col_spanCharacter

Element should span specified number of columns.

page_break_beforeCharacter

Control page-break occurring before element (auto,always, avoid).

page_break_afterCharacter

Control page-break occurring after element (auto,always, avoid).

page_break_insideCharacter

Control page-break occurring before element (auto, avoid) - this is a keep-together behavior.

sizeCharacter

Specify if size of page is absolute or relative.

marksCharacter

CSS property to set crop marks on paged media (crop/cross/none/inherit).

border_radiusCharacter

Radius for rounded borders.

border_top_left_radiusCharacter

Radius for rounded borders for top left corner only.

border_top_right_radiusCharacter

Radius for rounded borders for top right corner only

border_bottom_left_radiusCharacter

Radius for rounded borders for bottom left corner only

border_bottom_right_radiusCharacter

Radius for rounded borders for bottom right corner only

box_shadowCharacter

Specify drop shadow for box. The CSS3BoxShadow helper can be used to parse/create this.

box_sizingCharacter

Allows override of the way width and height are used - content-box is the default behavior, but border-box has been added to include the border in the box size.

Methods

ApplyBoxModifier Method

Modifies style to conform for a box modifer (section).

ClearCss Method

Clear CSS style sheet.

ConvertToA5BorderStyle Method

Returns an alpha anywhere border style.

ConvertToA5ColorDef Method

Returns an alpha anywhere color definition.

ConvertToTwips Method

Returns Css units into twips measurement.

CSS3FromLegacy Method

Set undefined CSS3 features when legacy mozilla Or WebKit attributes.

CSS3StripLegacy Method

Clear out any legacy mozilla Or WebKit attributes already represented by CSS3 standard attributes in style (unbloat).

CSS3ToLegacy Method

Represent any CSS3 features as legacy Mozilla and WebKit attributes (bloat).

FromA5FontDef Method

Populate font definiton and color from alpha anywhere definitions.

FromString Method

Convert CSS text to an style definition.

GetDigested Method

Returns box-shadow attributes that are further digested.

GetField Method

Get field by name (allows non-standard css fields).

HasBorder Method

Any aspect of border defined?

HasCSS3 Method

Returns true if style sheet includes CSS3 attributes.

HasFont Method

Any aspect of font defined?

HasLegacy Method

Returns true if style sheet includes legacy attributes.

HasRoundedBorder Method

Defines rounded borders (requires knowledge of corners in stylesheets).

IsSame Method

Returns true if style matches exactly.

OutputProcess Method

Process the CSS output (i.e. filter + output combination).

RemoveField Method

Remove field by name (allows removal of individual css fields).

SelectorsCombine Method

Pass in other style definition set undefined attributes, already defined attributes get set to psuedo value <Multiple>.

SetDeclaration Method

Set field by name (allows non-standard css fields).

ToA5ColorDef Method

Returns an alpha anywhere font color definition (foreground on background format).

ToA5FontDef Method

Returns an alpha anywhere font definition.

toString Method

Output the CSS text that represents the style definition.

See Also