The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> CSS Help
|
CSS: P inside TD
Discuss CSS: P inside TD in the CSS Help forum on Dev Shed. CSS: P inside TD Cascading Style Sheets (CSS) forum discussing all levels of CSS, including CSS1, CSS2 and CSS Positioning. CSS provides a robust way of applying standardized design concepts to your web pages.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 8th, 2001, 09:27 AM
|
|
Contributing User
|
|
Join Date: May 2001
Location: Groningen, NL
Posts: 42
Time spent in forums: 2 m 28 sec
Reputation Power: 13
|
|
|
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
|

May 8th, 2001, 09:47 AM
|
|
Contributing User
|
|
Join Date: Apr 2001
Location: (Slave only) NY, NY USA
Posts: 34
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
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 
|

May 8th, 2001, 10:07 AM
|
|
Contributing User
|
|
Join Date: May 2001
Location: Groningen, NL
Posts: 42
Time spent in forums: 2 m 28 sec
Reputation Power: 13
|
|
|
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
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|