for the search, my way to preload images! haha

Search for in

Direct Firefox to different coding

CSS Coding Tutorials | Submited Jan 10, 2008

Written by: User Picture..

How to direct Firefox to a different set of coding, kinda like the * html thing.

Notes


This is inside style tags, of course.
I put it in the myspace category because that's probably where people will need it.
The -moz part needs to be on the bottom to override the other codes.
In Internet Explorer
In Firefox

The code


remember, Style Tags.

body{background-color:FF0000;}

.37182{this part affects firefox only}
@-moz-document domain(myspace.com){

body{background-color:000000;}

}

What that does is make the background red in IE, and black in FF. the part with the black background is inside a tag that only firefox reads, whereas the top part is just normal CSS.
the @-moz part has to be on the bottom because that's how css works, stuff on the bottom>stuff on the top.
Notice the (myspace.com), if you're using it on a myspace profile, that's what it should say.

tags Tags: firefox only code

1Thumbs up  Thumbs down0

Related Tutorials
myYearbook tutorial
Direct Firefox to different coding
CSS Borders
Textareas
The Sims 2 Cheat codes
"Deafult layout" template
1 Comments
  User Picture.. ~ 01/12/08, 1:05am
Picture..
document and @ are filtered on skem9, by the way. [doh]

1 


Sorry, you have to be a member to comment tutorials