HTML Code ClinicDo you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Hi guys,
I have a page with light-blue text (#9697F3) on white background. If I click and drag to select some text, the background remains white but the color of the text turns a darker blue.
If I change the color to a darker blue (#123456) and select the text again, it inverts the bg/fg - ie. displays white characters on dark-blue bg.
How can I control the behaviour of selected text, using CSS (or other)?
Ps. Actually the background isn't white, it's 'browser-default' - bad Jonax - I know... ;)