|
| |
|
|
dcoffin
Posts: 39 Joined: 4/12/2004 Status: offline
|
Define Tables - 4/20/2004 21:24:24
Can CSS be used to define table and cell sizes?
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Define Tables - 4/21/2004 1:34:17
yes
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Define Tables - 4/21/2004 1:41:08
see http://www.w3schools.com/css/default.asp for more help on css you can define a rule (e.g. in an external stylesheet) .genericTable {width: 500px; border:1px black solid;} .narrowCell {width:20%;} .wideCell {width:80%:} then in your html you might have something like: <table class="genericTAble"> <td class="narrowCell"> navigtion content </td> <td class="narrowCell"> main content </td> </table> then if you has this same table on all yor pages and you suddenly decided to make the navigation a bit wider all you would have to do would be alter (2) the values in the externally linked style sheet
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Define Tables - 4/21/2004 1:41:58
p.s. like your 'mr man'
_____________________________
David Prescott Gekko web design
|
|
|
|
dcoffin
Posts: 39 Joined: 4/12/2004 Status: offline
|
RE: Define Tables - 4/21/2004 2:42:33
Thanks David. I was having a tough time finding something specific to tables but your example and the link you sent me is showing me i only need to create objects to add to or modify the properties. Very cool.
|
|
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
|
|
|