konqueror+css+border-collapse

Baka Tamás bakatamas at freemail.hu
Mon Jan 12 21:39:32 GMT 2004


Hi!

I have a question about koqnueror regarding css's border-collapse attribute.

On my website boxes have the following structure (to be themable)

<table class="box">
	<tr class="boxtop">
		<td class="boxtopleft"></td>
		<td class="boxtop">Title</td>
		<td class="boxtopright"></td>
	</tr>
	<tr class="boxmid">
		<td class="boxmidleft"></td>
		<td class="boxmid">Content</td>
		<td class="boxmidright"></td>
	</tr>
	<tr class="boxend">
		<td class="boxendleft"></td>
		<td class="boxend">Control links</td>
		<td class="boxendright"></td>
	</tr>
</table>

I use css where I set the background of individual lines (tr) or cells (td). 
My problem is that this way there vill be some empty space between cells - 1 
pixel wide I guess. If I give a background color only to the table itself, 
there is no empty space. To get rid of the empty spaces I use 
"border-collapse: collapse". It works fine with mozilla and IE, but has no 
effect in konqueror. What can I do? Is there a workaround?

Here is a sample of my css too:

table.box				{border: 0px solid #000000; width: 100%; border-collapse: 
collapse;}
tr.boxtop				{background: #000000; color: #ff7a18; text-align: center;}
tr.boxmid				{background: #ffffff; color: #000000;}
tr.boxend				{background: #a8ac99; color: #000000;}
td.boxtopleft			{border-left: 1px solid black; border-top: 1px solid black; 
padding: 0px;}
td.boxtop				{padding: 2px 5px 2px 5px; border-top: 1px solid black; 
text-align: left; font-size: small; font-weight: bold;}
td.boxtopright			{border-right: 1px solid black; border-top: 1px solid black; 
padding: 0px;}
td.boxmidleft			{border-left: 1px solid black; padding: 0px;}
td.boxmid				{padding: 5px;}
td.boxmidban			{padding: 5px; color: #ff0000;}
td.boxmidright			{border-right: 1px solid black;padding: 0px;}
td.boxendleft			{border-top: 1px solid black; padding: 0px;}
td.boxend				{border-top: 1px solid black; padding: 0px; text-align: center;}
td.boxendright			{border-top: 1px solid black; padding: 0px;}

Please advise :-)

Yours,

Tenchi
www.tkd.hu
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list