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

Home Posts Topics Members FAQ

border-collapse:collap se 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:sepera te; ].
Have a few table cells in the thead that 'have to' melt into eachother, so
needing the style [ border-collapse:collap se; ].

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_ta bles.REKAM_freq uenties.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?

--
______PretLette rs:
| 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
16 3228
On Mon, 06 Mar 2006 08:11:02 +0100, "Barbara de Zoete"
<tr******@pretl etters.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:sepera te;
].
Have a few table cells in the thead that 'have to' melt into eachother,
so
needing the style [ border-collapse:collap se; ].

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_ta bles.REKAM_freq uenties.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_ta bles.REKAM_freq uenties.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.n l> wrote:
On Mon, 06 Mar 2006 08:11:02 +0100, "Barbara de Zoete"
<tr******@pretl etters.net> wrote:
<URL:http://www.pretletters .net/_test/testing_data_ta bles.REKAM_freq uenties.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.
--
______PretLette rs:
| 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_ta bles.REKAM_freq uenties.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:collap se; (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 :-)

--
______PretLette rs:
| 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_ta bles.REKAM_freq uenties.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:collap se; (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******@pretl etters.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******@pretl etters.net> wrote:
<URL:http://www.pretletters .net/_test/testing_data_ta bles.REKAM_freq uenties.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
2143
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 different height than was set in the code. However, when I use the navigation buttons in IE to go back and then forward again to the second page, the table is displayed as expected.
10
5138
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 border must wrap around the contents. Both should result in the border around the complete page, no matter the size, so that none of the bgcolor bleeds outside of it (ie. you can never see or scroll outside of the border). I would have thought this...
10
7844
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 rows on the top and bottom of the picture and image. I need to make the height of the rows to be the same as the textbox and image. How do I do this? I have tried even setting the height of the table and all the <td> and <tr> tags to 1 but have...
3
1587
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 look/feel of the tables. Is this possible?
5
2335
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 how IE6 SP1 draws the borders wrongly. How it can be patched? Does that mean, that with the collapsed border table model one cannot set the display of rows successfully with no side effects in IE6 SP1?
4
15781
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> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this
11
3573
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 but not in height calculations. Oh, and Opera version 8.02 does the same thing. |<-->| |<-->| <------ border |<------------>| <------ table contents
7
2621
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 they columns lose their alignment. Can anyone help me correct this?
8
12094
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
5192
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 a div table and after I save it I noticed that the slideshow does not show up and the embed code I added is altered. Can anyone help me figure this out? The embed code that I'm talking about is three quarters down the code page under {PHOTOS},...
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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...
1
8904
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8876
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6531
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
4372
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
4624
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.