473,395 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

CSS replacement for table cellspacing?

Hi,

Is there a way to do table cellspacing with CSS?

Thanks,
Aaron

Jul 20 '05 #1
5 48653
Els
Aaron wrote:
Is there a way to do table cellspacing with CSS?


http://www.w3.org/TR/2004/CR-CSS21-2...arated-borders

Don't know about browser support.
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2
Els <el*********@tiscali.nl> wrote:
Aaron wrote:
Is there a way to do table cellspacing with CSS?


http://www.w3.org/TR/2004/CR-CSS21-2...arated-borders

Don't know about browser support.


Pretty good in modern browsers, shame about Internet Explorer. :-(

If an equivalent to cellspacing="0" is wanted then border-collapse:
collapse; has the same effect even in IE. But for non-zero values it's
best to stick with the HTML attribute until IE catches up with the six
year old CSS2 spec.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
Steve Pugh wrote:
If an equivalent to cellspacing="0" is wanted then border-collapse:
collapse; has the same effect even in IE.


(ahem) That's IE/Win. IE/Mac does not recognize border-collapse, thus
you must retain cesspacing="0" for that browser.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #4
DU
Aaron wrote:
Hi,

Is there a way to do table cellspacing with CSS?

Thanks,
Aaron


cellspacing
"The attribute also specifies the amount of space to leave between cells."
http://www.w3.org/TR/html401/struct/...ef-cellspacing

I'm surprised that no one answered you
border-spacing
"The 'border-spacing' property specifies the distance between the
borders of adjacent cells."
http://www.w3.org/TR/CSS2/tables.htm...border-spacing

DU
Jul 20 '05 #5
Els
DU wrote:
I'm surprised that no one answered you
border-spacing
"The 'border-spacing' property specifies the distance between the
borders of adjacent cells."
http://www.w3.org/TR/CSS2/tables.htm...border-spacing


I did. 45 hours and 27 minutes ago. But I referred to the
CSS 2.1 specs, where the name of the paragraph is 'seperated
borders'.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: QWERTY | last post by:
--------------Boundary-00=_O5I3QL80000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_O5I3LVC0000000000000" --------------Boundary-00=_O5I3LVC0000000000000...
7
by: jmm-list-gn | last post by:
Hello, What is the CSS equivalent of <table cellspacing="12" cellpadding="15">? -- jmm dash list (at) sohnen-moe (dot) com (Remove .AXSPAMGN for email)
0
by: yurps | last post by:
Hello here is my html, if you click the missing image in the first column on the left, the div is shown, when clicked again the div disappears...but the bottom border disappears as well...Is there...
3
by: Craig | last post by:
Quick question. I have HTML tables that get created on the fly. The size of rows/columns depends on the report the user is looking at. What I want to do is take more control over the...
5
by: cool2005 | last post by:
I have a table contains 4 cells (2 x 2) like this http://www.coolshare.com/planttrade/temp/gap.jpg each cell contains a div and the div contains a table. As you can see from the image above,...
1
by: sam | last post by:
Hi, I want to use style on the grids of table. Currently it use default style of the html table, in which the grid size appeared very thick. How can I change the "thick" style of the default...
1
by: kingster | last post by:
Hi, I have a regular dataset and all i want to do is make a pivot table display in a browser with the datasource of the pivot table to be this dataset and then the end-user will be able to do...
2
by: Giggle Girl | last post by:
I have a table that works nicely using a combo of old school HTML and some CSS. I need to keep using tables (due to other code on the serverside), but would love to get cellpadding, cellspacing...
3
by: Seth Watson | last post by:
I've seen so many answers on the net I am not sure which one is right or if there's one answer that will work in all browsers First off - Table - cellspacing and cellpadding What is the CSS...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.