473,396 Members | 1,866 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,396 software developers and data experts.

Spacing with CSS and tables in HTML

This is expanding on my previous question about gutters in tables.

Here are 3 URLs for sample pages I'm testing with. They vary only by the
table element attribute cellspacing, with values 0, 1, and 2:

http://phil.ipal.org/usenet/ciwas/20...28/boxes0.html
http://phil.ipal.org/usenet/ciwas/20...28/boxes1.html
http://phil.ipal.org/usenet/ciwas/20...28/boxes2.html

The stylesheet is at:

http://phil.ipal.org/usenet/ciwas/2006-04-28/boxes.css

As you can see, adjusting the cellspacing attribute does change the space
that exists between cells. Note that the cells in these pages are WHOLE
columns. The vertical boxes are simply separate div elements in the same
cell. So the space between upper and lower boxes is not affected by the
cellspacing attribute (and not expected to be). I can change that with
the margin-top setting for the inner div element as currently set in the
CSS file for these.

What I would like to find is a way to specify the cellspacing in the style
with CSS, instead of having to set it in the HTML.

That's in addition to my previous post of wanting to find a way to specify
the gutter spacing between cells (but not around the edge of the table),
without having to insert dummy cells to effec the spacing.

Here are my Firefox (1.5.0.2 on Linux) renderings of the above 3 HTML pages:

http://phil.ipal.org/usenet/ciwas/20...s0-firefox.png
http://phil.ipal.org/usenet/ciwas/20...s1-firefox.png
http://phil.ipal.org/usenet/ciwas/20...s2-firefox.png

I'm using the following to learn CSS:

http://www.w3.org/TR/1998/REC-CSS2-19980512/css2.pdf

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
Apr 29 '06 #1
0 1246

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

Similar topics

12
by: Rick DeBay | last post by:
I'm trying to create a layout table, where the spacing between rows varies. I've tried using setting margin-top and border-top for the rows I wan't spaced down from the one above, and I've also...
1
by: Jim Moe | last post by:
Hello, I am (slowly) in the process of changing a table-based layout to CSS/div-based. One area that uses tables a lot is the main nav menu. I have discovered that tables have advantage: all...
12
by: Sebastien B. | last post by:
I'm wondering if it's at all possible to have spacing between a table's cells, and only between the cells, not between the outter cells and the table's border. See end of message for an example...
4
by: metoikos | last post by:
I've scoured the web (clumsily, I'm sure) for information on the difficulties I am having, checked my markup in validators, and had a friend with more CSS clue look over it, but I haven't had any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.