SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member seagull's Avatar
    Join Date
    Dec 2001
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    two classes in the same tag ?

    could somebody please help me on this? i intend to make another set of rollover link for my navigation panel. the navigation panel already has another class "button". how would i combine both classes into a same tag? i did refer to another thread but othan than the <span class=""> solution which doesn't work for me, there is no other solution. below are the css and html tag i created.

    css:

    .button {
    border: 1 solid #A3A3D6;
    height: 25; font-size: 11px;
    text-align: center
    }

    A {
    COLOR: white;
    TEXT-DECORATION: underline
    }

    A:hover {
    color: #a3a3d6;
    TEXT-DECORATION: none
    }

    A:active .noline {
    COLOR: white;
    TEXT-DECORATION: none
    }

    A:hover .noline {
    color: #a3a3d6;
    TEXT-DECORATION: none
    }


    html tag:

    <td class="button"><b><a href="index.html">Home</a></b></td>

    * what i wanna do is to make the link "home" an un-underlined link. the element A {text-decoration: underline} has already overwritten every link.

    thanks.

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    2,617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    a.button:hover {text-decoration: none;}
    As you can see, classes can be applied to <a>...</a> - tags as well. I think that should solve your problem .

  3. #3
    SitePoint Member seagull's Avatar
    Join Date
    Dec 2001
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks !

    As you can see, classes can be applied to <a>...</a> - tags as well. I think that should solve your problem .
    thanks a lot Mark T.
    i didn't realize it until u pointed it out.


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
  •