My Photo about us Contact us terms of use

Change Background color when selecting text in wordpress

Posted by Muhammad asif on Feb 6, 2013
Change Background color when selecting text in wordpress

So yeah, the difference is in the details, and if we ever to customize our site's limits when offering a uniform design experience to our visitors.


To top it of personalization and consistent design , Brian Gardner encourages us to "tune" the background color that is decorated with the text to select it when visiting our WordPress.

The idea is that, using CSS , that color is in the palette of our design, and not the default color visitor system. How do you do?, Well simple, just add a new class to your CSS style sheet , usually named style.css and located in the active theme folder where, within the section of the body , add the following:
add a new class to your CSS style sheet

In the example, the hexadecimal code for the color ( # ff6200 ) is a beautiful orange color, you must change to fit your design.

The selector :: selection is supported by IE9 +, Opera, Google Chrome and Safari. The other selector, ::-moz-selection is that Firefox supports, hence we have to add both.

Did you like the trick?, Are you going to incorporate into your WordPress?

{ 0 comments... read them below if any or add comment }

Post a Comment

 
Copyright 2010 Wordpress blog updates - Seo plugin, template tutorial, logo design
Blogger template Design By Muhammad Asif