konqueror+css+border-collapse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux