Graeme Posted February 3, 2011 Report Posted February 3, 2011 Hello All, How can I style the text in a table the same as the rest of my text? I use /* TEXT STYLES */ p { margin: 5px; padding: 5px; font-size: 1em; line-height: 1.4em; font-weight: normal; color: #666; }in my CSS and would like the same in my table. Thank you a always, Best wishes Graeme
newseed Posted February 3, 2011 Report Posted February 3, 2011 Well you can add the <p> tags within the tables cells if you want. Otherwise, just give the table, tr or td a class or id just like you normally would for divs. Examples: Apply just the <p> tag only: <table> <tr> <td><p>My content here</p></td> </tr> </table> or... Apply a class or id and create a set of styles just for tables: <table class="mystyles"> <tr> <td>My content here</td> </tr> </table>
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now