Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

sidney preston
PLUS
sidney preston
Courses Plus Student 402 Points

cellspacing="0" border="0"> use CSS instead how do I use CSS

I need to change to CSS instead of using cellspacing="0" border="0".

1 Answer

Erik McClintock
Erik McClintock
45,783 Points

Sidney,

Here is a good, updated article on tables and how to use/style them according to newer specifications (including the fact that the "cellspacing" attribute is now deprecated): http://css-tricks.com/complete-guide-table-element/

To use CSS, though, you'll just target the specific elements of your table, the same as you would any other element from your HTML. Target the th, the td, give classes and/or IDs; whatever you need to apply your styles.

Hope this helps!

Erik