|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 ![]() |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS: P inside TD |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|