Results 1 to 3 of 3

Thread: overriding style to remove underline for mousover captions

  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default overriding style to remove underline for mousover captions

    Popup Image Viewer question
    http://www.dynamicdrive.com/style/cs...-image-viewer/

    I'm using above coding on my webpage for mouseover images. The captions are displaying underlined; how do I remove that? I'm guessing that the underlining is coming from a style related to the <a> tag, but I haven't specified a style for this in the css.

    I was able to override the font type (but not the underlining) in the css for the thumbnails:

    .thumbnail span{ /*CSS for enlarged image*/
    position: absolute;
    background-color: lightyellow;
    padding: 5px;
    left: -1000px;
    border: 1px gray;
    visibility: hidden;
    color: black;
    font-family: Verdana;
    font-size: 10px;
    font-style: normal;
    }


    Thanks!

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Its a default, you need to add text-decoration:none; to the a.

    You can do it as

    Code:
    a:hover {
    text-decoration:none;
    }
    or be more specific if you do want it other places

    Code:
    a:hover .thumbnail span{
    text-decoration:none;
    }
    Assuming the a contains the class and the span is within the a.
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks, that worked!

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
  •