Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get the MouseOver effect on normal text in css?  RSS feed

 
LGu Gu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have
some plain text <a href="...">My Link</a>
And I want hover affect on "some plain text"(basically change text color and background-color on mouse on/out). How can I do this?
Also when I using <form>...</form> or <table>...</table>, the browser usually starts a new line for the form/table. How can I avoid "starting the new line" in this case?
Thanks
[ October 30, 2003: Message edited by: LGu Gu ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is going to make a new line, that is what happens.
Either you are going to have to place it dynamically, OR you are going to have to use nested tables.
Eric
 
LGu Gu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric:
Thanks for answering my questions.
I am happy with your answer on the second question. However, for the first question, you might misunderstood what I have asked. Your answer provides the solution to get the hover effect on <a href=..>..</a>, but what I have asked is how to get the hover effect on text outside of <a ..>..</a>. I would really appreciate if you can give me an answer on this. Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if this helps
http://www.webreference.com/js/column4/page.html
 
LGu Gu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Works pretty well, thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!