CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 8th, 2001, 09:27 AM
Lionheart Lionheart is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Groningen, NL
Posts: 42 Lionheart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 28 sec
Reputation Power: 8
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

Reply With Quote
  #2  
Old May 8th, 2001, 09:47 AM
sodajerk sodajerk is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: (Slave only) NY, NY USA
Posts: 34 sodajerk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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

Reply With Quote
  #3  
Old May 8th, 2001, 10:07 AM
Lionheart Lionheart is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Groningen, NL
Posts: 42 Lionheart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 28 sec
Reputation Power: 8
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS: P inside TD


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway