CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 9th, 2003, 06:24 AM
stevenal stevenal is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 51 stevenal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
CSS table/border problems

Dear CSS experts....


I have created a table with the following

Code:
<table border="1" width="600px" height="400px" cellpadding="0" cellspacing="0">


see screenshot.

However, I would like to have done this using css and I would also prefer a 1px border between all cells. I have tried numerous methods posted on devshed forums to no success.

Generally they seem to make the table height too large as well as making it look like something a small child would draw.

Trouble is that the code has become quite complex with the table being generated dynamically using php and many of the td's have been assigned different classes (as i have used stylesheets for the rest of the table).

Can anyone give me any advice on this please?

Thanks

Allan
Attached Images
File Type: jpg image2.jpg (122.0 KB, 430 views)

Reply With Quote
  #2  
Old July 9th, 2003, 12:16 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,357 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 7 h 10 m 45 sec
Reputation Power: 787
Code:
<table style="width:600px;height:400px;border:1px solid;border-collapse:collapse;">
Each <td> should have a style of
Code:
border:1px solid
http://www.w3.org/TR/CSS21/tables.html

Reply With Quote
  #3  
Old July 10th, 2003, 03:49 PM
stevenal stevenal is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 51 stevenal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Thanks jharnois, that did the job nicely.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS table/border problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway