Skip to content
Anthony Short edited this page Aug 17, 2010 · 4 revisions

This is a simple extension that demonstrates hows to create your own CSS function. While it might be fun to use a random number in your CSS, I can’t think of many uses for it, especially since you’ll probably have the CSS cached.

Usage

This is a new CSS function that will create a random number between two other numbers:

#id
{
   height:rand(100,200)px;
   width:rand(300,350)px;
}

Output:

#id
{
   height:153px;
   width:334px;
}

Settings

This extension has no settings.

Hooks

This extension has no hooks.

Clone this wiki locally