?
Solved

Table within Paragraph

Posted on 2011-09-13
4
Medium Priority
?
271 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 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