IBM developerWorks
           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 March 8th, 2002, 07:00 AM
Pushkin Pushkin is offline
Caffeine - Nicotine - Sugar
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Germany, Cologne
Posts: 60 Pushkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Tables and Borders in HTML 4.01 / CSS 1.0

lo ppl,

how do format a table like this?

Code:
+-----------------+
| TH  | TH  | TH  |
+-----------------+
  TD  | TD  | TD  
+-----+-----+-----+
  TD  | TD  | TD  
+-----+-----+-----+
  TD  | TD  | TD  
+-----+-----+-----+
  TD  | TD  | TD   


I want to have the TABLE no border, the TH with a border at all four sides, and the TD with borders only where they are next to another TD.

I thought it was the rules and frame attributes of TABLE, but i couldn't get it right.

What is the smartest way (with a stylesheet if possible) to format this table?

Thx.

Reply With Quote
  #2  
Old March 8th, 2002, 07:25 AM
binky's Avatar
binky binky is offline
Gerbil
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: In a Rotastak
Posts: 1,763 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 22 h 12 m 52 sec
Reputation Power: 18
<table border=0>
<th style="border:thin solid #000000" colspan="3">Table Header</th>
<tr><td>CELL</td><td>CELL</td><td>CELL</td></tr>
</table>
__________________
- Sorted!

www.ppfuk.com - Free Photo Sharing

Reply With Quote
  #3  
Old March 8th, 2002, 08:38 AM
Pushkin Pushkin is offline
Caffeine - Nicotine - Sugar
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Germany, Cologne
Posts: 60 Pushkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Quote:
Originally posted by binky
<table border=0>
<th style="border:thin solid #000000" colspan="3">Table Header</th>
<tr><td>CELL</td><td>CELL</td><td>CELL</td></tr>
</table>



Uhhm thank you binky, but that doesn't answer my question at all. Looks like this:

Code:
+-----------------+
|       TH        |
+-----------------+
  TD    TD    TD   

Reply With Quote
  #4  
Old March 8th, 2002, 08:49 AM
binky's Avatar
binky binky is offline
Gerbil
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: In a Rotastak
Posts: 1,763 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 22 h 12 m 52 sec
Reputation Power: 18
Oops, sorry...

It's not easy to do dynamically but:

<table border=0 width="50%" height="50%" cellpadding=0 cellspacing=0>
<th style="border:dashed thin" colspan="3">Table Header</th>

<tr><td style="border-style: none dashed dashed none; border-width:thin;">CELL</td>
<td style="border-style: none dashed dashed none; border-width:thin;">CELL</td>
<td style="border-style: none none dashed none; border-width:thin;">CELL</td></tr>

<tr><td style="border-style: none dashed dashed none; border-width:thin;">CELL</td>
<td style="border-style: none dashed dashed none; border-width:thin;">CELL</td>
<td style="border-style: none none dashed none; border-width:thin;">CELL</td></tr>

<tr><td style="border-style: none dashed dashed none; border-width:thin;">CELL</td>
<td style="border-style: none dashed dashed none; border-width:thin;">CELL</td>
<td style="border-style: none none dashed none; border-width:thin;">CELL</td></tr>

<tr><td style="border-style: none dashed none none; border-width:thin;">CELL</td>
<td style="border-style: none dashed none none; border-width:thin;">CELL</td>
<td style="border-style: none none none none; border-width:thin;">CELL</td></tr>
</table>

will work..

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Tables and Borders in HTML 4.01 / CSS 1.0


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 3 hosted by Hostway