Showing posts with label format(). Show all posts
Showing posts with label format(). Show all posts

Wednesday, May 25, 2011

format() method

The format() method formats and styles the content in the "body" element of a page; therefore it styles the document, unless a certain element has it's own styling. It is a much simpler way of formatting your page than using "raw" CSS.


Browser support: all
TheMadScript Version: 2.0.0

Syntax: format(background-color,background-image,font-family,color,font-size,text-align);

The syntax example below will give the body a special style. Refer to the synax above for the parameter actions:

format("yellow","","Verdana","blue","14px","center");