Using CSS Change Selected Text and Background Color

Normally when anyone select text of webpage color has been change in blue color. Recently i was visiting a website and noticed that text and background color is different from other websites. When i explore about this technique that how is doing this I was surprised that it was too easy method. You will have use only these 2 lines in your CSS and selection behavior will be change. But keep in mind these techniques will work only on Firefox and Safari. IE is not supporting this method. But you can give a pleasant look to your Firefox and Safari users. CSS lines are below use and enjoy but must give your remarks.

::selection { background: #A8141B; color: white; /* Safari */ }

::-moz-selection { background: #A8141B; color: white; /* Firefox */ }