|
| |
|
|
Gill_110
Posts: 120 Joined: 4/25/2004 Status: offline
|
TABLES - 7/12/2008 15:16:28
Hi I have just started to use Expression Web. I have a web site with pages that contain lots of tables - over 100. I use a CSS to control the layout and colour of my site. How can I set up part of my CSS to control the colour scheme of my table? Thanks.
|
|
|
|
TexasWebDevelopers
Posts: 202 Joined: 2/22/2002 From: Status: offline
|
RE: TABLES - 7/12/2008 19:33:08
Give each table an id : <table id="tblA" cellspacing="0" summary="Table description goes here."> Then write your css for the th, tr and td tags. You can even use images for backgrounds. Here is an example-view source for code and download the css: http://www.texaswebdevelopers.com/css_layout/
_____________________________
http://www.TexasWebDevelopers.com/
|
|
|
|
Tailslide
Posts: 6270 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: TABLES - 7/13/2008 3:20:45
Best not to use tables at all for layout. Tables should only ever be used for tabular data. Use CSS to layout the page and presentation. If you're stuck with an old design that you can't change then do as suggested and give tables either IDs (for a unique style on a page) or classes (for something that you repeat a lot). BUT try to give them meaningful ID or class names - it's pretty hard to understand what tblA means when you're looking at a stylesheet. Much much better to call it - "wrapper" or "footer" or "sidebar" etc etc.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|