PDA

View Full Version : border collpase


esthera
03-03-2006, 07:32 AM
i have the following css

.holiday{
color:#676767;
text-decoration:none;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
padding:0px;
border: thin solid #cde1ea;
border-collapse:collapse;
}

.holiday td{
border: thin solid #cde1ea;
border-collapse:collapse;

}

shouldn't this collapse the border? did I do something wrong that it's not working?

Mr. Bubble
03-03-2006, 09:21 AM
as i am not a pro at css yet.... im not sure what border collapse is, this looked different so i think this may have helped not sure though.


.holiday{
color:#676767;
text-decoration:none;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
padding:0px;
border: thin solid #cde1ea;
border-collapse:collapse;
}

.holiday_td{
border: thin solid #cde1ea;
border-collapse: collapse;

}



Alex.

esthera
03-03-2006, 09:33 AM
nope.. border collapse is when you don't see any space between the border and teh rest of the cells.

I changed

.holiday td{
border: thin solid #cde1ea;
border-collapse:collapse;
padding:0px;
margin:0px;

}

with no margin and padding which I would think would do it - but it's not.
why?

rmedek
03-03-2006, 10:05 AM
What's the HTML? Or is there a link?

I know that border-collapse isn't supported in FF 1.0ish so it may be that… either way you should only need to use it in the table styles and not the td.

drhowarddrfine
03-03-2006, 01:29 PM
I know that border-collapse isn't supported in FF 1.0ish so it may be thatNo. FF has supported it since 1.0 though if you do something with it dynamically there were issues but there was a fix of some sort for this a couple of months ago. It was completely broken in IE5, I know.

rmedek
03-03-2006, 05:54 PM
No. FF has supported it since 1.0 though if you do something with it dynamically there were issues but there was a fix of some sort for this a couple of months ago.

I dunno about that. I know Mozilla says they supported it but this site (http://pan.uqam.ca/pan/pmwiki.php/CSS/BorderCollapse) says otherwise. I've always run into trouble trying to use it with 1.0; take this project (http://gigcal.richardmedek.com) for example. View any calendar in FF 1.0 and you'll see what I mean.