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?
LVL 11
singletonAsked:
Who is Participating?
 
Gurvinder Pal SinghConnect With a Mentor Commented:
p.className table tbody tr td, p.className table tbody tr th
{
   
}
0
 
Gurvinder Pal SinghCommented:
<<Can I have a table within a paragraph>>
Yes

.className table tbody tr td
{
   
}
0
 
singletonAuthor Commented:
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
0
 
singletonAuthor Commented:
Thank you very much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.