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

    Join Date
    May 2001
    Location
    Groningen, NL
    Posts
    42
    Rep Power
    14

    CSS: P inside TD


    I have 2 questions:


    1. How can I redefine styleproperties of P inside a TD without doing it like:

    <table>
    <tr>
    <td><p class="bla"> bla </p></td>
    </tr>
    </table>

    CSS validator says:

    P can't be inside an inline element

    TD P {
    margin-left : 0;
    }


    2. Further, people are complaining about tables showing black
    (IE is showing it allright)

    H1 , H2 , H3 , H4 , H5 , H6 , P , TD , TH , DIV , LI {
    font-family : Verdana, Arial, Helvetica, sans-serif;
    background-color : transparent;
    color : #212921;
    }


    Thanx
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    (Slave only) NY, NY USA
    Posts
    34
    Rep Power
    14
    As for problem number one, putting your style as TD P {color: blue}, or the like, works just fine, in both IE and NS, so, I am not sure was validator is trying to say, but, you might decide to ignore it.

    As for number two, people are right, you get a clear background with IE but a really funky black in NS.

    If you remove that particular style from the TD element, you no longer get the black background bleed through.

    Cool, you have found a new Netscape value added item. At least this is a new one on me.

    Anyone else have an idea on that particular one?

    Tom
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Groningen, NL
    Posts
    42
    Rep Power
    14
    Thanks Tom,

    Yes I removed background-color: transparent:

    H1, H2, H3, H4, H5, H6, P, TH, DIV, LI { font-family: Verdana, Arial, Helvetica, sans-serif; background-color: transparent; color: #212921}
    TD { font-family: Verdana, Arial, Helvetica, sans-serif; color: #212921}

    and that made Netscape's hidden gatchet leave as well.

    Richard

IMN logo majestic logo threadwatch logo seochat tools logo