PATH://adammoro.net/code/css/

CSS: Text Selection Highlighter

If you select the text you are reading right now, you'll see what this CSS does. It only works in Mozilla browsers though. You can easily change the color as you'll see below. Simply add this to your CSS file.

			*::-moz-selection {
			background-color: #FFFF00;
			color:#333333;
			}
			

If you want to add it to a page, you can simply paste the following code somewhere in between the HEAD tags.

			<style type="text/css">
			<!--
			*::-moz-selection {
				background-color: #FFFF00;
				color:#333333;	
			}	
			-->
			</style>