Previous Message
Next Message

format a <p> within a <td>

Sent by Sophia Kapterian on 23 January 2004 21:09


Andrew wrote:

< I need to format a <p> within a <td>:
<
< <TD id="meetingDates" class="meetingDates">
<  <DIV id="meetingDates">
<   <p>I can feel you running through me.</p>
<  </DIV>
< </TD>
< Here's my css - it's equally entertaining:
<
< meetingDates{font-family: Verdana, sans-serif;  font-size: 8px; }
< p.meetingDates{font-family: Verdana, sans-serif;  font-size: 8px; }
< td.meetingDates{font-family: Verdana, sans-serif;  font-size: 8px; }
< #meetingDates{font-family: Verdana, sans-serif;  font-size: 8px; }
< td.p.meetingDates{font-family: Verdana, sans-serif;  font-size: 8px; }
<
< The text is being formatted as 12px verdana: the way it is defined here
< p,td{
<	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
<	font-size: 12px;
< }

Hi Andrew,

You have mixed up your classes and ids.  You can have only one id per page
whereas you can use class as many times as needed.
You can accomplish what you need with contextual selectors.

For good references see: http://www.meyerweb.com/eric/writing.html web
review section on selectors
For further explanation of selectors, visit:
http://gallery.theopalgroup.com/selectoracle/

I have provided a quick example for you to check at:
http://www.digitalworx.biz/testsite/andrew.p.htm

HTH
Sophia

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: