Any CSS people here?

Users who are viewing this thread

Dana

In Memoriam - RIP
Messages
42,904
Reaction score
10
Tokenz
0.17z
I'm TRYING to see if I can make some text links hover 2 different colors when you mouseover by trying to put the first letter of each like into a seperate div within the main div. Is it possible to do this or am I wasting my time?
 
  • 9
    Replies
  • 1K
    Views
  • 0
    Participant count
    Participants list

retro

Well-Known Member
Messages
12,886
Reaction score
0
Tokenz
0.00z
I don't believe that's possible... because I'm pretty sure that the a:hover is what controls the mouseover for the entire css, not just an individual div.
 

Carlton

Member
Messages
174
Reaction score
0
Tokenz
0.00z
I don't believe that's possible... because I'm pretty sure that the a:hover is what controls the mouseover for the entire css, not just an individual div.

Nope, you can assign any CSS to any element, Dana Im not sure exactly what you mean, you want each link to be a different colour?

you can add a span class
<a href="/" class="nav1"> in your css you make #nav1 a:hover: #ff0000 for red or whatever you need.
you do not need javascript or jquery!

let me know what it is you are trying to do..
 

retro

Well-Known Member
Messages
12,886
Reaction score
0
Tokenz
0.00z
Nope, you can assign any CSS to any element, Dana Im not sure exactly what you mean, you want each link to be a different colour?

you can add a span class
<a href="/" class="nav1"> in your css you make #nav1 a:hover: #ff0000 for red or whatever you need.
you do not need javascript or jquery!

let me know what it is you are trying to do..

He wants his hovers to look like this

Link

If it's possible, I've never see any code like that before in my life.
 

Carlton

Member
Messages
174
Reaction score
0
Tokenz
0.00z
as long as each letter has its own span class, its very doable. its actually basic CSS, does he want the whole word to be a link? or each letter...?
 

Ammonite

New Member
Messages
50
Reaction score
0
Tokenz
0.00z
Oh I thought he wanted the colours to interchange. You could do it with an individual DIV but it would be so horribly impractical.
 
78,874Threads
2,185,387Messages
4,959Members
Back
Top