Hi
if I have few tables on my page and I want that every table will have it's own style what should I write in my css file?
sorry it's a silly question, I just forgot it![]()
Hi
if I have few tables on my page and I want that every table will have it's own style what should I write in my css file?
sorry it's a silly question, I just forgot it![]()
Basically, you have to have a unique id on every table.
With that said, if you the id of table 1 (for instance) istable1, which should look like this:
Then, style it in your CSS by the basic rule:Code:<tableid="table1"><tr><td></td></tr></table>
Sidenote, if you are designing the page, then stop using tables - it was'nt intended for layouts.Code:/*selector{property:value}*/ #table1{background:#fc0;}
Hope that makes sense and thus keeps you going.
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
lord22 (07-30-2008)
thanks![]()
Bookmarks