• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

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?
0
singleton
Asked:
singleton
  • 2
  • 2
1 Solution
 
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
 
Gurvinder Pal SinghCommented:
p.className table tbody tr td, p.className table tbody tr th
{
   
}
0
 
singletonAuthor Commented:
Thank you very much
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now