473,508 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

border-collapse:collapse and seperates; Can you have it both ways in one table?

Here's what I'm trying to do:

Create a table with generic style property [ border-collapse:seperate; ].
Have a few table cells in the thead that 'have to' melt into eachother, so
needing the style [ border-collapse:collapse; ].

Looking somthing like:

,------------.------------.
| | header |
| other | one | two |
|============|======|=====|
| data data | 1,25 | aA |
|------------|------|-----|
| more data | 2,50 | aB |
`------------'------'-----'

See how 'header' and 'one' and 'two' more or less optically melt into
eachother?

I've setup a test page at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
(styles in the page). In the head of the table on that page the cells that
I optically want to melt into one are 'TV-station' and 'kort' and
'volledig'.

How can I achieve the look I want?

--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Mar 5 '06 #1
16 3189
"Barbara de Zoete" <tr******@pretletters.net> wrote:
Looking somthing like:

,------------.------------.
| | header |
| other | one | two |
|============|======|=====|
| data data | 1,25 | aA |
|------------|------|-----|
| more data | 2,50 | aB |
`------------'------'-----'
Real content please.
See how 'header' and 'one' and 'two' more or less optically melt into
eachother?

I've setup a test page at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
(styles in the page). In the head of the table on that page the cells that
I optically want to melt into one are 'TV-station' and 'kort' and
'volledig'.


I'm probably missing something as I don't see the problem:
http://homepage.ntlworld.ie/spartanicus/temp.htm

--
Spartanicus
Mar 5 '06 #2
On Sun, 05 Mar 2006 16:43:41 +0100, Spartanicus <in*****@invalid.invalid>
wrote:
"Barbara de Zoete" <tr******@pretletters.net> wrote:
Looking somthing like:

,------------.------------.
| | header |
| other | one | two |
|============|======|=====|
| data data | 1,25 | aA |
|------------|------|-----|
| more data | 2,50 | aB |
`------------'------'-----'


Real content please.


As I provided with the url, didn't I.
See how 'header' and 'one' and 'two' more or less optically melt into
eachother?

I've setup a test page at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
(styles in the page). In the head of the table on that page the cells
that
I optically want to melt into one are 'TV-station' and 'kort' and
'volledig'.


I'm probably missing something as I don't see the problem:
http://homepage.ntlworld.ie/spartanicus/temp.htm


Well, I do see the problem: the vertical borders of the cell containing
'TV-station' don't connect with the vertical borders of the two cells in
the next row (in both Opera8.5 and FF1.5). There's a 2px gap. The
cellspacing="2" probably does that, as does the border-collapse:separate;
in my example.
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Mar 5 '06 #3
"Barbara de Zoete" <tr******@pretletters.net> wrote:
Real content please.


As I provided with the url, didn't I.


And not in the message text didn't you.
I'm probably missing something as I don't see the problem:
http://homepage.ntlworld.ie/spartanicus/temp.htm


Well, I do see the problem: the vertical borders of the cell containing
'TV-station' don't connect with the vertical borders of the two cells in
the next row (in both Opera8.5 and FF1.5). There's a 2px gap. The
cellspacing="2" probably does that, as does the border-collapse:separate;
in my example.


So you've answered your own question right?
http://homepage.ntlworld.ie/spartanicus/temp.htm (updated)

--
Spartanicus
Mar 5 '06 #4
On Sun, 05 Mar 2006 17:05:28 +0100, Spartanicus <in*****@invalid.invalid>
wrote:
"Barbara de Zoete" <tr******@pretletters.net> wrote:
Real content please.


As I provided with the url, didn't I.


And not in the message text didn't you.


And the problem with that is?
I'm probably missing something as I don't see the problem:
http://homepage.ntlworld.ie/spartanicus/temp.htm


Well, I do see the problem: the vertical borders of the cell containing
'TV-station' don't connect with the vertical borders of the two cells in
the next row (in both Opera8.5 and FF1.5). There's a 2px gap. The
cellspacing="2" probably does that, as does the
border-collapse:separate;
in my example.


So you've answered your own question right?
http://homepage.ntlworld.ie/spartanicus/temp.htm (updated)


Nice, but now the cellspacing throughout the table is gone. I want the
cellspacing, just not for those three cells. Looks like that cannot be
done. Neither with markup attributes/values or with css. Right?

Bummer...
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Mar 5 '06 #5
"Barbara de Zoete" <tr******@pretletters.net> wrote:
Real content please.

As I provided with the url, didn't I.
And not in the message text didn't you.


And the problem with that is?


That I had to retrieve the remote document where there should have been
no need for me to do so.
I want the cellspacing


It's obvious that you are intent on making it difficult to be helped by
withholding information, as a regular you should know better. I'm not
going to try and drag it out of you by asking why. Good luck.

--
Spartanicus
Mar 5 '06 #6
Barbara de Zoete wrote:
Here's what I'm trying to do:

Create a table with generic style property [ border-collapse:seperate; ].
Have a few table cells in the thead that 'have to' melt into eachother, so
needing the style [ border-collapse:collapse; ].

Like this?:
<http://sohnen-moe.com/test/t.html>

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 5 '06 #7
On Sun, 05 Mar 2006 21:36:36 +0100, Jim Moe
<jm***************@sohnen-moe.com> wrote:
Barbara de Zoete wrote:
Here's what I'm trying to do:
Create a table with generic style property [ border-collapse:seperate;
].
Have a few table cells in the thead that 'have to' melt into eachother,
so
needing the style [ border-collapse:collapse; ].

Like this?:
<http://sohnen-moe.com/test/t.html>


Nice try, but no, that is not it. That solid border is something quite
different from the separate inset borders I'm after. I know the 'ascii-art
thingy' didn't have separate borders, but the example at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
does. And the text explains it too.

Thanks for trying though.

Anyone else wants to have a go at this? It seems so simple a task, and
yet...

--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Mar 6 '06 #8
On Sun, 05 Mar 2006 21:19:22 +0100, Spartanicus <in*****@invalid.invalid>
wrote:
"Barbara de Zoete" <tr******@pretletters.net> wrote:
> Real content please.

As I provided with the url, didn't I.

And not in the message text didn't you.


And the problem with that is?


That I had to retrieve the remote document where there should have been
no need for me to do so.


That's a rather weird response comming from you. If no URL is provided in
a request for help, the only response people get from especially you is
'Please provide URL'. The complaint in that case being 'I had to copy and
past your content from your post to a text document, save it as html and
then open it in my browser.'
Now a URL *is* provided and you come back with 'I had to retrieve the
remote document'. Please make up your mind to what you prefer.
I want the cellspacing


It's obvious that you are intent on making it difficult to be helped by
withholding information,


See, that's why I provided the URL,

<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>

because in that example it is obvious I want some cellspacing. Helping
myself by helping those who _want_to_help_ by providing a live example is
exactly what one is supposed to do.

Don't be so grumpy Spartanicus. There is absolutely no reason to be like
this. It is a rather tough puzzle and I can't solve it, and by the looks
of it, neither can you. That's okay. It's just a puzzle.
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Mar 6 '06 #9
"Barbara de Zoete" <tr******@pretletters.net> wrote:
>> Real content please.
>
> As I provided with the url, didn't I.

And not in the message text didn't you.

And the problem with that is?
That I had to retrieve the remote document where there should have been
no need for me to do so.


That's a rather weird response comming from you. If no URL is provided in
a request for help, the only response people get from especially you is
'Please provide URL'. The complaint in that case being 'I had to copy and
past your content from your post to a text document, save it as html and
then open it in my browser.'
Now a URL *is* provided and you come back with 'I had to retrieve the
remote document'.


This type of question on presentation does not benefit from uploaded
example code, an in-message ascii drawing or uploaded graphic drawing is
required to know what is wanted. [1]

I didn't see any problem in creating the look you wanted, so I created a
test case to make sure. It provided the look as set out per your
requirements, and then I thought "hold on, is this correct markup?", I
then had to retrieve the example code to see if that contained real
content, and in the process noticed that the ascii drawing was not what
you were actually trying to do.

[1] Accompanied with any further requirements that cannot be expressed
in a drawing, and the reason for same, both you failed to provide.
I want the cellspacing


It's obvious that you are intent on making it difficult to be helped by
withholding information,


See, that's why I provided the URL,

<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>

because in that example it is obvious I want some cellspacing.


It may be to you, it's a mystery to me.
Don't be so grumpy Spartanicus.
Pot, kettle.
It is a rather tough puzzle and I can't solve it, and by the looks
of it, neither can you.


Solving a puzzle requires having all the pieces, you are continuing to
withhold required pieces.

--
Spartanicus
Mar 6 '06 #10
On Mon, 06 Mar 2006 08:11:02 +0100, "Barbara de Zoete"
<tr******@pretletters.net> wrote:
On Sun, 05 Mar 2006 21:36:36 +0100, Jim Moe
<jm***************@sohnen-moe.com> wrote:
Barbara de Zoete wrote:
Here's what I'm trying to do:
Create a table with generic style property [ border-collapse:seperate;
].
Have a few table cells in the thead that 'have to' melt into eachother,
so
needing the style [ border-collapse:collapse; ].

Like this?:
<http://sohnen-moe.com/test/t.html>


Nice try, but no, that is not it. That solid border is something quite
different from the separate inset borders I'm after. I know the 'ascii-art
thingy' didn't have separate borders, but the example at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
does. And the text explains it too.

Thanks for trying though.

Anyone else wants to have a go at this? It seems so simple a task, and
yet...


Sorry, I can't make any progress either. On reflection I think it
reasonable that combining the two border-collapse values isn't possible.
What you're trying to do isn't collapsing the borders, but trying to
fill in the space in between with a different colour.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Mar 6 '06 #11
Barbara de Zoete wrote:

Nice try, but no, that is not it. That solid border is something quite
different from the separate inset borders I'm after. I know the 'ascii-art
thingy' didn't have separate borders, but the example at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
does. And the text explains it too.

Well, the URL shows your undesirable layout, not what you want. Your
ascii art shows that you do not want a border under "TV-station."
Basically you cannot get what you want, as I understand it. The table's
background color shines through any cell spacing (border-spacing)
regardless of cell border style.
See <http://sohnen-moe.com/test/t.html> (updated). Setting
border-spacing:0 removes the line under TV-station (the table's bg color
is no longer visible), but changes the <td>s border look.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 6 '06 #12
On Mon, 06 Mar 2006 20:12:53 +0100, Stephen Poley
<sb******************@xs4all.nl> wrote:
On Mon, 06 Mar 2006 08:11:02 +0100, "Barbara de Zoete"
<tr******@pretletters.net> wrote:
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>

Anyone else wants to have a go at this? It seems so simple a task, and
yet...


Sorry, I can't make any progress either. On reflection I think it
reasonable that combining the two border-collapse values isn't possible.
What you're trying to do isn't collapsing the borders, but trying to
fill in the space in between with a different colour.


Euhm, no I don't think that is what I want. It would have more or less the
same effect, but it is not the same thing. The gaps should go away. The
border-spacing or cellspacing should go away, hence the border-collapse
thing.

But, hey, if the effect can be done in an other way, I'm happy to addept.
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Mar 7 '06 #13
On Mon, 06 Mar 2006 21:14:48 +0100, Jim Moe
<jm***************@sohnen-moe.com> wrote:
Barbara de Zoete wrote:

Nice try, but no, that is not it. That solid border is something quite
different from the separate inset borders I'm after. I know the
'ascii-art
thingy' didn't have separate borders, but the example at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
does. And the text explains it too.
Basically you cannot get what you want, as I understand it. The table's
background color shines through any cell spacing (border-spacing)
regardless of cell border style.


I've noticed that. That's why the borders on the involved cells were set
to 0, *and* I thought border-collapse:collapse; (combined with
cellspacing="0" or border-spacing:0; if necessary) would take care of
those cells without border then melting into one area. Those
attributes/values or properties/values don't work on anything but the
entire table though.
See <http://sohnen-moe.com/test/t.html> (updated). Setting
border-spacing:0 removes the line under TV-station (the table's bg color
is no longer visible), but changes the <td>s border look.


Yeah, the example shows pretty much the same effect I got so far. And I
know removing the border-spacing will change the look of the entire table,
which (in this casus) is undesirable.

Puzzle still not solved :-)

--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Mar 7 '06 #14
Els
Barbara de Zoete wrote:
On Mon, 06 Mar 2006 21:14:48 +0100, Jim Moe
<jm***************@sohnen-moe.com> wrote:
Barbara de Zoete wrote:

Nice try, but no, that is not it. That solid border is something quite
different from the separate inset borders I'm after. I know the
'ascii-art
thingy' didn't have separate borders, but the example at
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>
does. And the text explains it too.

Basically you cannot get what you want, as I understand it. The table's
background color shines through any cell spacing (border-spacing)
regardless of cell border style.


I've noticed that. That's why the borders on the involved cells were set
to 0, *and* I thought border-collapse:collapse; (combined with
cellspacing="0" or border-spacing:0; if necessary) would take care of
those cells without border then melting into one area. Those
attributes/values or properties/values don't work on anything but the
entire table though.
See <http://sohnen-moe.com/test/t.html> (updated). Setting
border-spacing:0 removes the line under TV-station (the table's bg color
is no longer visible), but changes the <td>s border look.


Yeah, the example shows pretty much the same effect I got so far. And I
know removing the border-spacing will change the look of the entire table,
which (in this casus) is undesirable.

Puzzle still not solved :-)


The only thing I can come up with, is using border-style:ridge; on the
cells (and collapsing the borders), and set the border-width wide
enough so that the actual ridge looks like border-spacing. The side
effect though, is that the "shadows" in the cells get just as wide
too, which I don't think you like.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: Technohead - I Wanna Be A Hippy
Mar 7 '06 #15
Barbara de Zoete wrote:
Basically you cannot get what you want, as I understand it.


[ ... border-spacing, border-collapse ...] Those
attributes/values or properties/values don't work on anything but the
entire table though.

This is true.
Puzzle still not solved :-)

And it will never be. Not without changing your requirements.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 7 '06 #16
On Tue, 07 Mar 2006 08:34:18 +0100, "Barbara de Zoete"
<tr******@pretletters.net> wrote:
On Mon, 06 Mar 2006 20:12:53 +0100, Stephen Poley
<sb******************@xs4all.nl> wrote:
On Mon, 06 Mar 2006 08:11:02 +0100, "Barbara de Zoete"
<tr******@pretletters.net> wrote:
<URL:http://www.pretletters.net/_test/testing_data_tables.REKAM_frequenties.html>

Anyone else wants to have a go at this? It seems so simple a task, and
yet...
Sorry, I can't make any progress either. On reflection I think it
reasonable that combining the two border-collapse values isn't possible.
What you're trying to do isn't collapsing the borders, but trying to
fill in the space in between with a different colour.


Euhm, no I don't think that is what I want. It would have more or less the
same effect, but it is not the same thing. The gaps should go away. The
border-spacing or cellspacing should go away, hence the border-collapse
thing.


Right, but (unless I'm getting completely confused) the use of
border-collapse means that the cells (other than the first) are actually
placed in a different position - they get shunted leftwards and upwards.
And that you don't want.
But, hey, if the effect can be done in an other way, I'm happy to addept.


Well ... there's always an image. <dives under the table at great
speed>

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Mar 7 '06 #17

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

Similar topics

14
2131
by: Carl Gilbert | last post by:
Hi I am currently writing a site that utilises tables. I have one page that links to a second page. The only problem is that when I link to the second page, the table loads up with a...
10
5118
by: Vigil | last post by:
I am trying to put a 7px border around a page. If the contents don't fill up the viewport, then the border must appear all around the viewport. If the page is larger than the viewport, then the...
10
7827
by: John | last post by:
I have a table with two rows. On the first row is a text box and in the second row is an image. I have set the table cellpadding to 0 and cellspacing to 0. The table is leaving extra spaces in the...
3
1557
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
2312
by: Marek Mänd | last post by:
Please explain to a experienced fool like me, how to hide table rows correctly at this case. http://marekmand.kuubik.ee/iebug_canthide_table_rows_properly.htm Click on the header "label" and see...
4
15765
by: Manuel Faux | last post by:
Hello! I used the "File Upload - Validator" and the result is like the following: Line 13, column 204: there is no attribute "border" ....irefox!" title="Get Firefox!" border="0" /></a></p>...
11
3554
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables...
7
2605
by: Shawn B. | last post by:
Greetings, I am trying to create a table that has a scrolling body. The problem I'm experiencing is that if the columns in the "body" part of the table exceed the width of the "header" then...
8
12084
by: UJ | last post by:
I have a table with multiple cells and I want to draw a box around the entire table but not around the individual cells. How do I do that? TIA - Jeff.
1
5185
by: MissMarie | last post by:
I've been playing around with DIV tables in myspace to better learn how to rewrite my own code for my business site without having to pay someone to design it. I've tried embedding a slideshow into...
0
7125
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
7328
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
7388
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...
0
7499
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...
1
5055
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...
0
3199
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...
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
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...

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.