Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Table within Paragraph

Posted on 2011-09-13
4
Medium Priority
?
279 Views
Last Modified: 2012-05-12
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
Comment
Question by:singleton
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 36530652
<<Can I have a table within a paragraph>>
Yes

.className table tbody tr td
{
   
}
0
 
LVL 11

Author Comment

by:singleton
ID: 36530748
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
 
LVL 40

Accepted Solution

by:
Gurvinder Pal Singh earned 2000 total points
ID: 36530760
p.className table tbody tr td, p.className table tbody tr th
{
   
}
0
 
LVL 11

Author Closing Comment

by:singleton
ID: 36530974
Thank you very much
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question