NodeFire Library

core  1.0.6

NodeFire Library > core > NF.util.css
Search:
 
Filters

static Class NF.util.css

Provides methods for working with CSS.

Methods

getComputedStyle

string | number getComputedStyle ( Node , styleName , scriptName )
Gets the computed style of a Node.
Parameters:
Node <Node> The Node with applied CSS styles to compute.
styleName <string> The CSS style name of the attribute, e.g. ("border", "padding-top", "font-size", etc...)
scriptName <string> The script property name of the attribute, e.g. ("border", "paddingTop", "fontSize", etc...)
Returns: string | number
The computed style value.

getInnerOffsets

Object getInnerOffsets ( Node )
Gets the inner offset dimension of a Node. The inner dimensions are the width and height of the node minus any borders and padding.
Parameters:
Node <Node>
Returns: Object
Object literal containing the width and height of the Node. Multiple naming conventions are included... {w:int,h:int,width:int,height:int,offsetWidth:int,offsetHeight:int}


Copyright © 2011 OpenCube: Inc. All rights reserved.