#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    27
    Rep Power
    0

    CSS class & embedded table


    Hello, i have a table embedded in another table, when i apply a class to a table cell ie:

    <td height="60" valign="top" class="sectionImportant">Important! Click here
    </td>

    all works except the link values. class in question is:

    .sectionImportant {
    FONT-SIZE: 8pt; COLOR: White; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #ff0000; TEXT-ALIGN: left; TEXT-DECORATION: none;
    font-weight: bold; padding-left : 2px; padding-bottom : 0px; padding-right : 0px; padding-top : 0px;
    }
    A.sectionImportant:link {
    FONT-WEIGHT: bold; COLOR: Blue; BACKGROUND-COLOR: #ff0000; TEXT-DECORATION: underline; padding-left : 2px; padding-bottom : 0px; padding-right : 0px; padding-top : 0px;
    }
    A.sectionImportant:visited {
    FONT-WEIGHT: bold; COLOR: Blue; BACKGROUND-COLOR: #ff0000; padding-left : 2px; padding-bottom : 0px; padding-right : 0px; padding-top : 0px;
    }
    A.sectionImportant:hover {
    FONT-WEIGHT: bold; COLOR: #ffffff; BACKGROUND-COLOR: #ff0000; TEXT-DECORATION: underline; padding-left : 2px; padding-bottom : 0px; padding-right : 0px; padding-top : 0px;
    }
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2001
    Location
    USA
    Posts
    830
    Rep Power
    14
    What browser(s) are you experiencing this problem with?
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    27
    Rep Power
    0
    Originally posted by JMM
    What browser(s) are you experiencing this problem with?
    I have only tested with NS6 and IE5.5
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    Houston, TX, US
    Posts
    75
    Rep Power
    14
    I've experienced this too. Seems that tables want to "reset" any styles. I've been forced to assign a class attribute to the anchor tag, i.e.

    <A HREF="doc.htm" CLASS="sectionImportant">Clickity Click</A>

    Just an idea.
    Tony Melendez
    tony dizat amerigo dizot com
    http://www.amerigo.com

IMN logo majestic logo threadwatch logo seochat tools logo