CSS to only allow selection of text on a webpage?

Viewed 10093

Is there a lightweight CSS or Javascript snippet that will allow me only make the selection/highlighting of things on a page only available to text? It's always annoyed me when you're trying to highlight text and you end up highlighting divs and images and things.

Is there a way ONLY to highlight text? That would include paragraph, anchors, text inside divs & images, and all header tags.

Thanks! ~ Jackson

I'm uploading the results anyone who who answers this, I'm currently running @Nick Radford 's code he ETA'd.

Here it is, and it's closer, still a lot of selection besides text going on with ctrl+a: http://designsweeter.com/

2 Answers
Related