Abhi's Experiments

Its a place to write about my professional experience and experiments

Interesting CSS styles

I thought I should write a post about the interesting CSS styles. But now I remember only a few styles which are something different, I will add more styles later.
1. selection style
::selection {
  background: #ffb7b7; /* Safari */
}
::-moz-selection {
  background: #ffb7b7; /* Firefox */
}

You can use these styles to change the text selection color. For example to see the text selection in red color, select the following line:
You will see text selection color as red for this line. Just try!
Select me! You will see text selection color as green for this line
Now try this line! You will see text selection color as blue
How is it? Cool uh!

I will add more styles to this post when I find something different.
blog comments powered by Disqus
Blackberry app using phoneg... >>
<< Google Chart