gemguy
08-22-2007, 02:52 AM
Hi,
I need some css tips on how to change the text color alone but not the background color when a selection is made.
i had used the below code which works well and specific for mozilla which changes the background to red and text to white on selecting the text.
*::-moz-selection {
background-color:#FF3C00;
}
But i need to change the text color alone something like blue.... Is there any CSS code to do it.
I need some css tips on how to change the text color alone but not the background color when a selection is made.
i had used the below code which works well and specific for mozilla which changes the background to red and text to white on selecting the text.
*::-moz-selection {
background-color:#FF3C00;
}
But i need to change the text color alone something like blue.... Is there any CSS code to do it.