Highlight Text CSS Highlight Colour

  • benwade9721
  • Novice
  • Novice
  • User avatar
  • Posts: 17

Post 3+ Months Ago

Hi everyone,

I was wondering what is the CSS/JS property to change the background color of text when you highlight it with your mouse... e.g:

Image

instead of the default color:

Image

Thanks,

Ben
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

http://css-tricks.com/overriding-the-de ... -with-css/
  • benwade9721
  • Novice
  • Novice
  • User avatar
  • Posts: 17

Post 3+ Months Ago

Thanks spork
  • Veeramanikandan
  • Novice
  • Novice
  • Veeramanikandan
  • Posts: 25

Post 9 days ago

just use the css background color properties.

for example:

Code: [ Select ]
span{background-color: #ff0000;}


HTML Code: [ Select ]
<span>image</span>
  • yasar123
  • Born
  • Born
  • yasar123
  • Posts: 3

Post 3 days ago

<p>asdfsg<span style="color:#000"> nvuiohnuit</span> dngitugu</p>

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 30 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.