Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

style sheet - <table> cell spacing, cell padding

Thread Tools
 
Search this Thread
 
Old Oct 22, 2003 | 05:54 PM
  #1  
Lisan Obelisk's Avatar
Lisan Obelisk
Thread Starter
Scooby Regular
 
Joined: Oct 2003
Posts: 95
Likes: 0
Post

I'm trying to use a style sheet to implement the following
&lt;table border=1 cellspacing=0 cellpadding=0&gt;

So far, I've got:
table { padding: 0px;}

how do you define cell spacing? (I've tried spacing: 0px)
Reply
Old Oct 22, 2003 | 06:04 PM
  #2  
chiark's Avatar
chiark
Scooby Regular
 
Joined: Jun 2000
Posts: 13,735
Likes: 0
Post

Authoritative resource here - http://www.htmlhelp.com/reference/css/ - there's an offline version available which is damn useful to have on the desktop (along with HTML 4.0 reference). Another useful place is http://www.w3schools.com/css/default.asp

cell spacing in a table is handled with margin (cell padding is padding as you've got)

Another option for just having zero spacing is to use border-collapse: collapse;
Reply
Old Oct 22, 2003 | 06:07 PM
  #3  
Lisan Obelisk's Avatar
Lisan Obelisk
Thread Starter
Scooby Regular
 
Joined: Oct 2003
Posts: 95
Likes: 0
Post

Superb - I'll give it a whirl.

I've noted those sites too.

Thanks Chiark.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
shorty87
Full Cars Breaking For Spares
19
Dec 22, 2015 11:59 AM
IanG1983
Wheels, Tyres & Brakes
2
Oct 6, 2015 03:08 PM
Ganz1983
Subaru
5
Oct 2, 2015 09:22 AM




All times are GMT +1. The time now is 08:18 AM.