PHP-SmartCSS syntax is definitely easy to learn. You simply need to assign one of the following prefixes, followed by a minus ( — ) symbol, to each attribute you would like to be displayed only with the corresponding browser(s).
Assigning PHP-SmartCSS attributes
For instance, if you want an orange background to be displayed by Firefox, a blue one to be displayed by Konqueror and a green background to be displayed by Navigator, you simply need to write this few lines in your style sheet:#mydiv
{
background: black;
firefox-background: orange;
konqueror-background: blue;
navigator-background: green;
}
PHP-SmartCSS attributes noncommutativity
Please dont' forget to place attributes in the correct order, as a standard attribute, placed as the latest one, will overwrite the previously assigned browser-specific attributes. For instance, the following style sheet, will produce only a black background rendering:#mydiv
{
firefox-background: orange;
konqueror-background: blue;
navigator-background: green;
background: black;
}
By the way, I will soon take care of this...
PHP-SmartCSS attributes prefix list
This is the whole list of supported PHP-SmartCSS attribute prefixes:
## FIREFOX FAMILY AVAILABLE PREFIXES ##
firefox
firefox:0
firefox:1
firefox:1.5
firefox:2
firefox:>0
firefox:>1
firefox:>1.5
firefox:<1
firefox:<2
firefox:0
firefox:1
firefox:1.5
firefox:2
firefox:>0
firefox:>1
firefox:>1.5
firefox:<1
firefox:<2
The entire Firefox family
Firefox versions 0.x
Firefox versions 1.x
Firefox version 1.5
Firefox versions 2.x
Firefox versions more recent than 0.x
Firefox versions more recent than 1.x
Firefox versions more recent than 1.5
Firefox versions less recent than 1.x
Firefox versions less recent than 2.x
Firefox versions 0.x
Firefox versions 1.x
Firefox version 1.5
Firefox versions 2.x
Firefox versions more recent than 0.x
Firefox versions more recent than 1.x
Firefox versions more recent than 1.5
Firefox versions less recent than 1.x
Firefox versions less recent than 2.x
## INTERNET EXPLORER FAMILY AVAILABLE PREFIXES ##
ie
ie:3
ie:4
ie:5
ie:5.5
ie:6
ie:7
ie:>3
ie:>4
ie:>5
ie:>5.5
ie:>6
ie:<4
ie:<5
ie:<5.5
ie:<6
ie:<7
ie:3
ie:4
ie:5
ie:5.5
ie:6
ie:7
ie:>3
ie:>4
ie:>5
ie:>5.5
ie:>6
ie:<4
ie:<5
ie:<5.5
ie:<6
ie:<7
The entire Internet Explorer family
Internet Explorer version 3
Internet Explorer version 4
Internet Explorer version 5
Internet Explorer version 5.5
Internet Explorer version 6
Internet Explorer version 7
Internet Explorer versions more recent than 3
Internet Explorer versions more recent than 4
Internet Explorer versions more recent than 5
Internet Explorer versions more recent than 5.5
Internet Explorer versions more recent than 6
Internet Explorer versions less recent than 4
Internet Explorer versions less recent than 5
Internet Explorer versions less recent than 5.5
Internet Explorer versions less recent than 6
Internet Explorer versions less recent than 7
Internet Explorer version 3
Internet Explorer version 4
Internet Explorer version 5
Internet Explorer version 5.5
Internet Explorer version 6
Internet Explorer version 7
Internet Explorer versions more recent than 3
Internet Explorer versions more recent than 4
Internet Explorer versions more recent than 5
Internet Explorer versions more recent than 5.5
Internet Explorer versions more recent than 6
Internet Explorer versions less recent than 4
Internet Explorer versions less recent than 5
Internet Explorer versions less recent than 5.5
Internet Explorer versions less recent than 6
Internet Explorer versions less recent than 7
## OPERA FAMILY AVAILABLE PREFIXES ##
opera
opera:2
opera:3
opera:4
opera:5
opera:6
opera:7
opera:8
opera:9
opera:>2
opera:>3
opera:>4
opera:>5
opera:>6
opera:>7
opera:>8
opera:<3
opera:<4
opera:<5
opera:<6
opera:<7
opera:<8
opera:<9
opera:2
opera:3
opera:4
opera:5
opera:6
opera:7
opera:8
opera:9
opera:>2
opera:>3
opera:>4
opera:>5
opera:>6
opera:>7
opera:>8
opera:<3
opera:<4
opera:<5
opera:<6
opera:<7
opera:<8
opera:<9
The entire Opera family
Opera version 2
Opera version 3
Opera version 4
Opera version 5
Opera version 6
Opera version 7
Opera version 8
Opera version 9
Opera versions more recent than 2
Opera versions more recent than 3
Opera versions more recent than 4
Opera versions more recent than 5
Opera versions more recent than 6
Opera versions more recent than 7
Opera versions more recent than 8
Opera versions less recent than 3
Opera versions less recent than 4
Opera versions less recent than 5
Opera versions less recent than 6
Opera versions less recent than 7
Opera versions less recent than 8
Opera versions less recent than 9
Opera version 2
Opera version 3
Opera version 4
Opera version 5
Opera version 6
Opera version 7
Opera version 8
Opera version 9
Opera versions more recent than 2
Opera versions more recent than 3
Opera versions more recent than 4
Opera versions more recent than 5
Opera versions more recent than 6
Opera versions more recent than 7
Opera versions more recent than 8
Opera versions less recent than 3
Opera versions less recent than 4
Opera versions less recent than 5
Opera versions less recent than 6
Opera versions less recent than 7
Opera versions less recent than 8
Opera versions less recent than 9
## NETSCAPE FAMILY AVAILABLE PREFIXES ##
netscape
netscape:2
netscape:3
netscape:4
netscape:6
netscape:>2
netscape:>3
netscape:>4
netscape:<3
netscape:<4
netscape:<6
netscape:2
netscape:3
netscape:4
netscape:6
netscape:>2
netscape:>3
netscape:>4
netscape:<3
netscape:<4
netscape:<6
The entire Netscape family
Netscape version 2
Netscape version 3
Netscape version 4
Netscape version 6
Netscape versions more recent than 2
Netscape versions more recent than 3
Netscape versions more recent than 4
Netscape versions less recent than 3
Netscape versions less recent than 4
Netscape versions less recent than 6
Netscape version 2
Netscape version 3
Netscape version 4
Netscape version 6
Netscape versions more recent than 2
Netscape versions more recent than 3
Netscape versions more recent than 4
Netscape versions less recent than 3
Netscape versions less recent than 4
Netscape versions less recent than 6
## AOL FAMILY AVAILABLE PREFIXES ##
aol
aol:3
aol:4
aol:5
aol:6
aol:7
aol:8
aol:3
aol:4
aol:5
aol:6
aol:7
aol:8
The entire AOL family
AOL version 3
AOL version 4
AOL version 5
AOL version 6
AOL version 8
AOL version 7
AOL version 3
AOL version 4
AOL version 5
AOL version 6
AOL version 8
AOL version 7
## HOTJAVA FAMILY AVAILABLE PREFIXES ##
hotjava
hotjava:3
hotjava:>2
hotjava:3
hotjava:>2
The entire Hotjava family
Hotjava version 3
Hotjava versions more recent than 2
Hotjava version 3
Hotjava versions more recent than 2
## OTHER MAJOR BROWSERS AVAILABLE PREFIXES ##
navigator
mozilla
gecko
safari
konqueror
mozilla
gecko
safari
konqueror
The entire Navigator family
The entire Mozilla family
The entire Gecko family
The entire Safari family
The entire Konqueror family
The entire Mozilla family
The entire Gecko family
The entire Safari family
The entire Konqueror family
## OTHER MINOR BROWSERS AVAILABLE PREFIXES ##
iemobile
lynx
links
w3m
webdav
netgem
icab
webtv
aoltv
lynx
links
w3m
webdav
netgem
icab
webtv
aoltv
The entire Mobile Internet Explorer family
The entire Lynx family
The entire Links family
The entire W3M family
The entire Webdav family
The entire Netgem family
The entire iCab family
The entire WEBTV family
The entire AOLTV family
The entire Lynx family
The entire Links family
The entire W3M family
The entire Webdav family
The entire Netgem family
The entire iCab family
The entire WEBTV family
The entire AOLTV family
Now, let's download the latest PHP-SmartCSS version .