It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

text background?

text background?

Postby samdaman on Sat Nov 27, 2010 7:08 am

hi everyone, this is my first post !
i have a question thats kinda hard to explain.
i want to put lines behind my font as if it were highlighted,
like when you drag over them with the mouse, but i want them to be black.
is there any way to do that?
thanks for reading :)
samdaman
 
Posts: 1
Joined: Sat Nov 27, 2010 6:51 am

Re: text background?

Postby EMaks on Sat Nov 27, 2010 10:28 am

Hi,

use span tags with certain class for text you want to highlight. Then in css for this class set background-color: #000; and color: #fff; so text will be visible on black. If you want it on mouseover you can use :hover. Hope it'll help.
EMaks
 
Posts: 14
Joined: Wed Nov 24, 2010 10:32 am

Re: text background?

Postby pep1439 on Fri Dec 03, 2010 10:57 am

Change your color according to your requirement.

Code: Select all
a:link { color: blue; }

a:active { color: yellow; }

a:visited { color: purple; }

a:hover { color: red; }

a:focus {color: green; }
pep1439
 
Posts: 7
Joined: Wed Dec 01, 2010 2:11 pm


Who is online

Users browsing this forum: No registered users and 3 guests