This is a discussion on "need help with Roll over stylesheet." within the Web Page Design section. This forum, and the thread "need help with Roll over stylesheet. are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
need help with Roll over stylesheet.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
need help with Roll over stylesheet.
Below is a expanded content stylesheet that I'm working on, the expand style sheet works but I can't figured out how to make the link itself a blue state and red when roll over.
<p onClick="expandcontent('sc9')" style="cursor:hand; cursor I don't think I can use the <a href> tag </a> Please advise if you have a suggestion. Thanks. -Ott |
|
|
|
|||
|
what link?
|
|
|||
|
In this example the link will be >How do I make this link blue with red rollover?< as seen in the above example. When you roll your mouse over this it will turn the cursor into a hand and when you click on it right now it will expan to the text below with more text notice onClick="expandcontent"
So, the link I want to replicate is the >How do I make this link blue with red rollover?< I want to be able to roll over this with different color. I want to try to replicate it as though it is an a href tag. Thanks. |
|
||||
|
cant you use the :hover pseudo class to for the onhover event?
|
|
|||
|
I tried but I can't get it to work. How should I use the :hover in the style code? Is it something like this?
<p onClick="expandcontent('sc9')" style="hover: color: #a00c25; cursor:hand; cursor |
|
|||
|
try this:
|
|
|||
|
Thank you both benbarcardi and D3mon, both was good suggestions, but I went with D3mon which seem to work beautifully. Again, both of your comments were great. Thanks.
|
|
|||
|
You can't use :hover (note the ":") as an inline style. Just take a look at the confusion:
|
![]() |
| Tags |
| help, roll, stylesheet |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Roll Over Images | rattlesnak | Web Page Design | 10 | Feb 16th, 2008 01:59 |
| Roll overs? Ideas. | PicoDeath | Web Page Design | 1 | Jul 30th, 2007 16:34 |
| Image roll over pop up | acrikey | Web Page Design | 12 | May 2nd, 2007 15:31 |
| strtotime() roll over | kthompso | PHP Forum | 0 | Jan 22nd, 2007 20:28 |