SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict gthorley's Avatar
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a simple way to have the text change colour when the mouse passes over without using an image rollover.

    I seem to recall seeing something which will only work in IE that uses a .css file

  2. #2
    SitePoint Guru sowen's Avatar
    Join Date
    Feb 2001
    Location
    Stockport, UK
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes you can do it with css either in an external style sheet or embed the style in your html code.

    if you put the following inbetween the <head> and </head> tags

    <style type="text/css">
    a:hover {color: #ff9900}
    </style>

    it will turn your links orange as the mouse passes over them.

    check out http://www.w3.org/Style/CSS/ for the low down on cascading style sheet, there is loads of impressive stuff you can do with it.

    Hope this helps


Bookmarks

Posting Permissions

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