473,698 Members | 2,556 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="backgrou nd-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 8380
mi**********@gm ail.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**********@g mail.com> a écrit dans le message de
news:de******** *************** ***@posting.goo gle.com
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**********@gm ail.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*****@juliet remblay.com.inv alid> wrote:
mi**********@gm ail.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
8400
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 in JavaScript/JScript and HTML/XML elements. Without trying to get famous :-) but thinking it would be interesting to others I decided to post the following summary: 1. Variable names in JavaScript/JScript
7
2580
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 url(styles/my_style.css);--></style> and <link rel=stylesheet href=styles/my_style.css type=text/css> in the header, which applies to the entire HTML document and is NOT what I want to do. This does not seem to work: <span style = @import url('styles/my_style.css');>
21
2892
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 direction. I'm trying to make a table with 2 columns split down the middle - simple enough. In the past, without Strict HTML, I would just specify the width of each 'cell' as 50%, but width isn't allowed in a <td> under Strict HTML. Sometimes I...
8
2107
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
15663
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 section of about 6 table rows that all need to be hidden if a certain condition is met. But I don't want to hide the whole table. And, I don't want to split up the table because the columns need to remain intact. I thought about using runat=server...
3
1498
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 page.How can i do that?Any samples, tutorials, advice?
3
3527
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 obviously similiar, they're not even close. The background color is lighter than the graphic color. But they look ok on Windows IE 6, Mozilla 1.7 and on Mac IE 5.
1
4660
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
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7739
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.