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

HTML, rules=groups, color of space between cells

OK, so, say you've got a table, and it's set up like the following
code. Note the rules="groups" part and the
background-color:lime part.

<table rules="groups" cellpadding="8" cellspacing="8">
<thead style="background-color:lime;">
<tr>
<th>Total value</th>
<th>In lien</th>
</tr>

<tr>
<th>Total value of all of asset(s)</th>
<th>Is this asset in lien?</th>
</tr>
</thead>
</table>

Now, the way this code gets rendered (at least in IE, which is what my
users use) is that the cells have a lime background, but the space
*between* the cells is the same as the BODY background color (white in
my case). See http://www.idocs.com/miko/uf/pics/finances.gif for a
screenshot of what I mean.

Is there a CSS or HTML setting that indicates the color of the spaces
between cells in a group? I've usually kludged this with
cellspacing="0", but for this one page I really like those nice thick
borders.

Anybody? Anybody? Bueller?
Jul 20 '05 #1
4 8368
mi**********@gmail.com wrote:

Is there a CSS or HTML setting that indicates the color of the spaces
between cells in a group? I've usually kludged this with
cellspacing="0", but for this one page I really like those nice thick
borders.

Set <table border"0" cellspacing="2" or 5 or whatever>. The color
showing between cells is the body background color.

--
jmm dash list at sohnen-moe dot com
(Remove .TRSPAMTR for email)
Jul 20 '05 #2
<mi**********@gmail.com> a écrit dans le message de
news:de**************************@posting.google.c om
Is there a CSS or HTML setting that indicates the color of the spaces
between cells in a group?


Isn't the border color that is used for that ?

Jul 20 '05 #3
mi**********@gmail.com wrote:
Is there a CSS or HTML setting that indicates the color of the
spaces between cells in a group?


Set a background-color for the table, then set border-collapse:
separate; and border-spacing to whatever you want.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #4
Brian <us*****@julietremblay.com.invalid> wrote:
mi**********@gmail.com wrote:
Is there a CSS or HTML setting that indicates the color of the spaces
between cells in a group?


Set a background-color for the table, then set border-collapse:
separate; and border-spacing to whatever you want.


You could also use <table bgcolor="..."> instead of the CSS property; I'm
not saying you should, just mentioning an HTML answer since this is an
HTML group. Generally, there's not much practical difference between
setting such colors using presentational HTML attributes and setting them
in CSS, but it's probably a good idea to choose _one_ of the approaches.
That is, if you set e.g. cell background colors in HTML, use HTML for the
table background color too.

But I guess Miko (is it really you Miko? long time no see) might have
been asking whether it is possible to set one color for the spaces
between cells in one group (say, for header cells inside <thead>) and
another color for the spaces between cells elsewhere in the table. I'm
afraid this is not possible (except in the sense that you could simulate
it using tricky nested tables), since the spacing between cells "belongs"
to the <table> element, not to any inner element (including <thead>). One
might say that e.g. a table row consists of the cells only, not of the
spacing between them, so that physically a row is non-contiguous in this
sense (if the spacing is nonzero). Similarly, you cannot set the amount
of spacing between cells different for different parts of the table (but
you might achieve the desired effect by using padding instead).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #5

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

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
7
by: David Filmer | last post by:
Greetings. I want to localize a style definition to a portion of an HTML document, but use an external stylesheet. It seems that I can only do <style><!-- @import...
21
by: BT | last post by:
I inherited a simple page that needs to be Strict HTML and I'm not very familiar with this standard. What I'm trying to do _should be_ pretty simple so I hope someone can point me in the right...
8
by: Geoff Cox | last post by:
Hello, If I have fred = "0 -10 5 6 "; how can I split above into groups of 2, ie 0,-10
12
by: Jerad Rose | last post by:
I searched for a while trying to find the answer to this, but to no avail. I am trying to find the best way (or any way) to dynamically show and hide groups of TR's. For example, I have a...
3
by: Robot | last post by:
Dear all, I need to create a script which will extract the contents of 2 cells of an html that contains a specified number of cells.Then I need to put that contents in another cells of my own html...
3
by: Will Hartung | last post by:
Hi all, I seem to be having an issue color matching between the cut up graphic pieces and the block fill background colors on a Mac iBook running Safari. Simply put, while the color are...
1
nirmalsingh
by: nirmalsingh | last post by:
hi all, i want to get the html color code of selected color of the color pallette(in c#.net windows application.), how to get this. thanx in advance with Cheers Nirmal
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.