WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Change Text Selection Highlight Colour (2 posts)

  1. spiderguy252
    Member
    Posted 2 years ago #

    So I've used the following bit of code to change the text selection colour from the default blue to gray, which is more suited to my site:

    spydistrict.com

    Code:

    /*Overriding the default text selection color*/
    ::selection {
    background:#A4A4A4;
    color:#eee;
    }

    ::-moz-selection {
    background:#A4A4A4;
    color:#eee;
    }

    ::-webkit-selection {
    background:#A4A4A4;
    color:#eee;
    }

    I put it at the end of my stylesheet. Trouble is, (you can figure out what's happening when you go to any page on my site and press Ctrl+A), some regions on highlight like the logo or elements of the sidebar still retain the blue colour?

    Any way I can make them gray as well?

    [please don't start duplicate topics - continue with: http://wordpress.org/support/topic/change-text-selection-highlight-colour?replies=1 ]

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.