Advanced selection css for html5

Are you bored of the old default selection style ??

old

Try this for a better advanced style:

<style type=”text/css”>
/* draw any selected text red on gray background */

 background: none repeat scroll 0 0 transparent;
 color: red;
 text-shadow: 1px 1px gray;

</style>

It will look like this:

new

Have Fun !!! Enjoy 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s