<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Firefox and border-collapse</title>
	<atom:link href="http://www.charlesgarwood.com/blog/?feed=rss2&#038;p=13" rel="self" type="application/rss+xml" />
	<link>http://www.charlesgarwood.com/blog/?p=13</link>
	<description>the ramblings of chuck</description>
	<lastBuildDate>Wed, 28 Apr 2010 18:03:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: peterg</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-1173</link>
		<dc:creator>peterg</dc:creator>
		<pubDate>Wed, 28 Apr 2010 18:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-1173</guid>
		<description>Hi there, I&#039;m having a problem with a image gallery template that I got from dynamic drive, my website template is floating, with 3 columns, the center column is where my thumbnails are, and when mouse hovers on image, larger version comes up in designated area beside thumbnails, my problem is that when the screen size changes using control +/-, the position of the larger image changes and blocks thumbnails , because it is set to the left hand side of the screen. I can easily fix it but I&#039;m thinking about other people who might not know to simply change screen size. I just don&#039;t know how to change the CSS so that the enlarged image is floating in the center column, and not fixed to the left side. How do I tie the two together, I&#039;m not very savvy with this stuff yet, but hopefully someone can help me
This is the CSS, 

.gallerycontainer{
position: auto;
/*Add a height attribute and set to largest image&#039;s height to prevent overlaying*/
}

.thumbnail img{
border: 2px solid grey;
margin: 10px 5px 5px 5px;
}

.thumbnail:hover{
background-color: transparent;
}

.thumbnail:hover img{
border: 1px;color:#6a6f71;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color:#8b8e91;
padding: 5px;
left: px;
border: px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
text:#ffffff;

}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 2px;
padding: 5px;
}

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 195px;
left: 675px; /*position where enlarged image should offset horizontally */

z-index: 50;
}</description>
		<content:encoded><![CDATA[<p>Hi there, I&#8217;m having a problem with a image gallery template that I got from dynamic drive, my website template is floating, with 3 columns, the center column is where my thumbnails are, and when mouse hovers on image, larger version comes up in designated area beside thumbnails, my problem is that when the screen size changes using control +/-, the position of the larger image changes and blocks thumbnails , because it is set to the left hand side of the screen. I can easily fix it but I&#8217;m thinking about other people who might not know to simply change screen size. I just don&#8217;t know how to change the CSS so that the enlarged image is floating in the center column, and not fixed to the left side. How do I tie the two together, I&#8217;m not very savvy with this stuff yet, but hopefully someone can help me<br />
This is the CSS, </p>
<p>.gallerycontainer{<br />
position: auto;<br />
/*Add a height attribute and set to largest image&#8217;s height to prevent overlaying*/<br />
}</p>
<p>.thumbnail img{<br />
border: 2px solid grey;<br />
margin: 10px 5px 5px 5px;<br />
}</p>
<p>.thumbnail:hover{<br />
background-color: transparent;<br />
}</p>
<p>.thumbnail:hover img{<br />
border: 1px;color:#6a6f71;<br />
}</p>
<p>.thumbnail span{ /*CSS for enlarged image*/<br />
position: absolute;<br />
background-color:#8b8e91;<br />
padding: 5px;<br />
left: px;<br />
border: px dashed gray;<br />
visibility: hidden;<br />
color: black;<br />
text-decoration: none;<br />
text:#ffffff;</p>
<p>}</p>
<p>.thumbnail span img{ /*CSS for enlarged image*/<br />
border-width: 2px;<br />
padding: 5px;<br />
}</p>
<p>.thumbnail:hover span{ /*CSS for enlarged image*/<br />
visibility: visible;<br />
top: 195px;<br />
left: 675px; /*position where enlarged image should offset horizontally */</p>
<p>z-index: 50;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shamania</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-1137</link>
		<dc:creator>shamania</dc:creator>
		<pubDate>Tue, 20 Apr 2010 15:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-1137</guid>
		<description>For me best way to solve this problem:
- use table tag property cellspacing=&quot;0&quot;
- for each table cell define border-width: 0 1px 1px 0;
- with css class define all cells in first column and you can do something like this:
table td.cell-in-first-column{border-left-width: 1px;}
- with css class define all cells in first row and you can do something like this:
table td.cell-in-first-row {border-top-width: 1px;}</description>
		<content:encoded><![CDATA[<p>For me best way to solve this problem:<br />
- use table tag property cellspacing=&#8221;0&#8243;<br />
- for each table cell define border-width: 0 1px 1px 0;<br />
- with css class define all cells in first column and you can do something like this:<br />
table td.cell-in-first-column{border-left-width: 1px;}<br />
- with css class define all cells in first row and you can do something like this:<br />
table td.cell-in-first-row {border-top-width: 1px;}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: poorinE</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-837</link>
		<dc:creator>poorinE</dc:creator>
		<pubDate>Thu, 28 Jan 2010 03:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-837</guid>
		<description>i&#039;m poor in English.I had a same problem ,but i want to let  has borde too. if  add td-border,it can&#039;t solve the problem with your methods.The td-order will have 2px height if you set  1px border.Maybe it can solve the problem like someone suggest set table left-bottom border and td right-top border. other methods?

i&#039;m sorry.very poor in english</description>
		<content:encoded><![CDATA[<p>i&#8217;m poor in English.I had a same problem ,but i want to let  has borde too. if  add td-border,it can&#8217;t solve the problem with your methods.The td-order will have 2px height if you set  1px border.Maybe it can solve the problem like someone suggest set table left-bottom border and td right-top border. other methods?</p>
<p>i&#8217;m sorry.very poor in english</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wise Owl</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-752</link>
		<dc:creator>Wise Owl</dc:creator>
		<pubDate>Tue, 22 Dec 2009 12:00:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-752</guid>
		<description>This is the only site I could find with anything approaching a solution to this problem, so thanks.

Using a gridview in ASP.NET with CssClass set and styles, I can ALMOST solve the problem!

Table style includes:

border-color: #000;
border-width: 0 0 1px 2px;
border-style: solid;

Cell style includes:

border-color: #000;
border-width: 1px 1px 0 0;
border-style: solid;

The gridview now looks perfect in Firefox, but Chrome and IE give an annoying slightly thicker left border.  Have tried all sorts of other things which don&#039;t work.

My understanding of conditional comments is that they only work for IE, whereas I want something which says &quot;if this is Firefox, do something different&quot;.

Just thought I&#039;d add an other experience!</description>
		<content:encoded><![CDATA[<p>This is the only site I could find with anything approaching a solution to this problem, so thanks.</p>
<p>Using a gridview in ASP.NET with CssClass set and styles, I can ALMOST solve the problem!</p>
<p>Table style includes:</p>
<p>border-color: #000;<br />
border-width: 0 0 1px 2px;<br />
border-style: solid;</p>
<p>Cell style includes:</p>
<p>border-color: #000;<br />
border-width: 1px 1px 0 0;<br />
border-style: solid;</p>
<p>The gridview now looks perfect in Firefox, but Chrome and IE give an annoying slightly thicker left border.  Have tried all sorts of other things which don&#8217;t work.</p>
<p>My understanding of conditional comments is that they only work for IE, whereas I want something which says &#8220;if this is Firefox, do something different&#8221;.</p>
<p>Just thought I&#8217;d add an other experience!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Florence</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-718</link>
		<dc:creator>Kyle Florence</dc:creator>
		<pubDate>Tue, 01 Dec 2009 19:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-718</guid>
		<description>My solution:

table {
	width: 100%;
	border-spacing: 0;
	border-left: 1px solid #666;
	border-bottom: 1px solid #666;
}

*:first-child+html table { border-collapse: collapse; } /* IE 7 */
* html table { border-collapse: collapse; } /* IE 6 */

table tr, table th, table td {
	padding: 5px;
	border-top: 1px solid #666;
	border-right: 1px solid #666;
}

IE8 seems to support border-collapse as long as a DOCTYPE is set.</description>
		<content:encoded><![CDATA[<p>My solution:</p>
<p>table {<br />
	width: 100%;<br />
	border-spacing: 0;<br />
	border-left: 1px solid #666;<br />
	border-bottom: 1px solid #666;<br />
}</p>
<p>*:first-child+html table { border-collapse: collapse; } /* IE 7 */<br />
* html table { border-collapse: collapse; } /* IE 6 */</p>
<p>table tr, table th, table td {<br />
	padding: 5px;<br />
	border-top: 1px solid #666;<br />
	border-right: 1px solid #666;<br />
}</p>
<p>IE8 seems to support border-collapse as long as a DOCTYPE is set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-658</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 08 Nov 2009 20:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-658</guid>
		<description>Excellent Post!

Chuck, using border-spacing instead of border-collapse solved the 1px issue in Firefox, but at the expense of adding 2px borders for table cells (as mentioned by Cameron McKay).

Mag Leahy, your solution to use css styles to apply borders on the bottom-left and top-right solved the 2px borders for table cells. Also,why did you include the IE conditional comment when your solution works without having to resort to border-collapse in Internet Explorer? I think you can get rid of the IE conditional comments and it will still work in IE

Cameron McKay, I understand what you mean when you consider this a bug in Firefox 3, but Firefox is complying with standards for this particular issue. Its just that standards complaint code is not giving us the correct result. Strange...

Peter V Cook, I&#039;ve tried setting the margin-left to 1px and reduced my table width by 1px to give me the correct look in Firefox, but at the expense of the table looking incorrectly in IE, Opera, and Safari. I initially thought about using Javascript to target Firefox and only apply the margin-left style for that browser since there isn&#039;t a conditional comment for Firefox. However, that was the wrong way to go about this problem. Chuck and Mag Leahy&#039;s solution is much better.</description>
		<content:encoded><![CDATA[<p>Excellent Post!</p>
<p>Chuck, using border-spacing instead of border-collapse solved the 1px issue in Firefox, but at the expense of adding 2px borders for table cells (as mentioned by Cameron McKay).</p>
<p>Mag Leahy, your solution to use css styles to apply borders on the bottom-left and top-right solved the 2px borders for table cells. Also,why did you include the IE conditional comment when your solution works without having to resort to border-collapse in Internet Explorer? I think you can get rid of the IE conditional comments and it will still work in IE</p>
<p>Cameron McKay, I understand what you mean when you consider this a bug in Firefox 3, but Firefox is complying with standards for this particular issue. Its just that standards complaint code is not giving us the correct result. Strange&#8230;</p>
<p>Peter V Cook, I&#8217;ve tried setting the margin-left to 1px and reduced my table width by 1px to give me the correct look in Firefox, but at the expense of the table looking incorrectly in IE, Opera, and Safari. I initially thought about using Javascript to target Firefox and only apply the margin-left style for that browser since there isn&#8217;t a conditional comment for Firefox. However, that was the wrong way to go about this problem. Chuck and Mag Leahy&#8217;s solution is much better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Archer</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-512</link>
		<dc:creator>Jason Archer</dc:creator>
		<pubDate>Tue, 15 Sep 2009 14:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-512</guid>
		<description>Specifically I believe Firefox actually shifts the entire table 1 pixel to the left - if you have a right container border that should be matched up with your table border this is also 1px left making a 2px border on the right hand side.

Still... at least Firefox has Firebug which makes tracking and sorting this kind of error a couple of zillion times easier than certain other browsers *cough*</description>
		<content:encoded><![CDATA[<p>Specifically I believe Firefox actually shifts the entire table 1 pixel to the left &#8211; if you have a right container border that should be matched up with your table border this is also 1px left making a 2px border on the right hand side.</p>
<p>Still&#8230; at least Firefox has Firebug which makes tracking and sorting this kind of error a couple of zillion times easier than certain other browsers *cough*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard C</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-430</link>
		<dc:creator>Richard C</dc:creator>
		<pubDate>Fri, 07 Aug 2009 16:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-430</guid>
		<description>A much simpler fix would be to set the table&#039;s html border setting to 0 ...

..Table width=&quot;100%&quot; border=0 ...

If you set the table html border to something other than 0, and have style setting of &quot;border-collapse: collapse&quot;, then the &quot;bug&quot; appears ...</description>
		<content:encoded><![CDATA[<p>A much simpler fix would be to set the table&#8217;s html border setting to 0 &#8230;</p>
<p>..Table width=&#8221;100%&#8221; border=0 &#8230;</p>
<p>If you set the table html border to something other than 0, and have style setting of &#8220;border-collapse: collapse&#8221;, then the &#8220;bug&#8221; appears &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-428</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 07 Aug 2009 10:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-428</guid>
		<description>Unfortunately I have my table in a scrolled container and can&#039;t work around it yet.
I might resort to javascript hack if can&#039;t work it out tonight.</description>
		<content:encoded><![CDATA[<p>Unfortunately I have my table in a scrolled container and can&#8217;t work around it yet.<br />
I might resort to javascript hack if can&#8217;t work it out tonight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adi</title>
		<link>http://www.charlesgarwood.com/blog/?p=13&#038;cpage=1#comment-411</link>
		<dc:creator>Adi</dc:creator>
		<pubDate>Mon, 03 Aug 2009 07:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.charlesgarwood.com/blog/?p=13#comment-411</guid>
		<description>Thanks Mag Leahy! Your solution solved the problem.</description>
		<content:encoded><![CDATA[<p>Thanks Mag Leahy! Your solution solved the problem.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
