Link to home
Start Free TrialLog in
Avatar of singleton
singletonFlag for United States of America

asked on

Table within Paragraph

I realize the use of tables for overall page layout is discouraged, but that they are ok for true tables.

Can I have a table within a paragraph, and if the paragraph is a specific class, i.e. p.classname, then how do I style the contents of a <td> within that table? Do I have to put <td class="classname"> on EVERY cell?
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

<<Can I have a table within a paragraph>>
Yes

.className table tbody tr td
{
   
}
Avatar of singleton

ASKER

It seemed to work, but when I added th it stopped working. also I could not add p; I had to keep my separate p.classname entry
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very much