The possibilities of very many CSS are one that I like much is the possibility of personalizing the color of the text selection that in almost all the navigators is of blue color, but you have tried to select text in this blog you will have realized that is of green color clearly, good only you are doing if it from Firefox or Safari since Internet Explorer and Opera do not support that property.
In order to make that all the page Web has the new color we needed to include following code CSS
/* compatible selector with Firefox *
:: - moz-selection {
background: #D4F699; /* basic color *
color: #7AA62F; /* text color *
}
/* compatible selector with Safari *
:: selection {
background: #D4F699; /* basic color *
color: #7AA62F; /* text color *
}
And he is not everything, because we can specify different colors for nuesta page Web, for example for headed h1 is going to be of a color and the paragraphs of another color.
/* compatible selector with Firefox *
h1:: - moz-selection {/* for headed h1 *
background: #D4F699;
color: #7AA62F;
}
p:: - moz-selection {/* for paragraphs p *
background: #7AA62F;
color: #D4F699;
}
/* compatible selector with Safari *
h1:: selection {/* for headed h1 *
background: #D4F699;
color: #7AA62F;
}
p:: selection {/* for paragraphs p *
background: #7AA62F;
color: #D4F699;
}
To only I want them to remember that the selectors:: selection and:: moz-selection is not standard and therefore they cause that your CSS does not validate correctly.











9 Commentaries (yours Adds)
Excellent, thanks for the information.
U_U Pity, I imagined that he was something nonstandard, but equal it is thanked for (and from now on =D implements in my Webs)
Greetings
@aebs: yes it is a pity that is not a standard property because I like much.
Hello:: - moz-selection is not standard, but:: selection if it is it or, rather, will be it.
She is one of the new specifications of css3, for that reason not been worth like css2.
Greetings!
they @Juan: thank you very much Po the data
agruegue and does not work to me, in which it leaves from the file I must style.css it add?
I already work adds, it right under the description of the subject that is the primeor that comes.
that it could do if I want that in it explores functions or that effect cannot be obtained
so that the truth I would like to apply it in explores not so that I like but the teacher that I have the Czech in explores
@Jose Antonio: at the moment I do not know some method but surely with the help of you can obtain it to Javascript.
I need to know like putting backrund with photos in my space using the system css or if there is some situated one provides that them free