Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Apr 2011
    Posts
    107
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Can you do mouse overs in HTML?

    im wondering if you can do mouseovers on text...when you hover your mouse it will underline?

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by shakoor6 View Post
    im wondering if you can do mouseovers on text...when you hover your mouse it will underline?
    Of course.

    Code:
    a {
    	text-decoration: none;
    }
    a:hover {
    	text-decoration: underline;
    }
    Teed

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Can you do mouse overs in HTML?
    In fact in CSS
    http://www.tizag.com/cssT/pclass.php
    http://reference.sitepoint.com/css/pseudoclasses

    Moreover, the modern browsers have implemented pseudo classes even in other elements than links (div, span, p, li...)
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #4
    Regular Coder
    Join Date
    Apr 2011
    Posts
    107
    Thanks
    18
    Thanked 0 Times in 0 Posts
    thanx!im kinda new to all this..where abouts would i place this with the text?

  • #5
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Quote Originally Posted by shakoor6 View Post
    thanx!im kinda new to all this..where abouts would i place this with the text?
    See my links above to the examples of usage.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •