P
Paul David Buchan
I am using:
Windows XP
version 2002, SP 2
Browser: IE 7.0.5730.13 and Mozilla Firefox 3.0.1
The problem:
When defining in style border-width, IE shrinks the box to
adjust to the size of the box for a DIV and
it does not for IMG. The IMG is the correct size, but the
DIVs are too small.
This does not happen in Mozilla. In other words, with Mozilla,
all my boxes are displayed in the same, correct size whether
they are IMG or DIV.
Here is a simplified (but tested) version of my HTML:
<html>
<head>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test borders</title>
<style>
..colorbox {
height: 100; width:100;
border-width: 20px 20px 20px 20px;
border-spacing: 0px;
border-style: solid solid solid solid;
border-color: Red Red Red Red;
border-collapse: separate;
}
</style>
<table>
<tbody id="colortable">
<tr>
<td height="140" width="140">
<div id="divisionBlack" class="colorbox" title="Black"
style="background: rgb(0, 0, 16)"/>
</td>
<td height="140" width="140">
<img id="divisionpicture" class="colorbox" height="120" width="120"
src="F
icture.gif" title="Heather Gray"/>
</td>
<td height="140" width="140">
<div id="divisionPearl" class="colorbox" title="Pearl"
style="background: rgb(254, 250, 237)"/>
</td>
<td height="140" width="140">
<div id="divisionGreen" class="colorbox" title="Green"
style="background: rgb(100, 200, 100)"/>
</td>
</tr>
</tbody>
</table>
</html>
I'm not sure whether this is my mistake and one browser
is more fault-tolerant than the other, or whether there's a bug in
IE or Firefox.
I looked here
http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/
but couldn't convince myself that my problem was exactly
the same as one of the bugs listed.
Can anybody tell me if this is my mistake, or whether
there's a browser bug I need to work around?
Any suggested solutions are welcome.
Thanks,
Dave Buchan
(e-mail address removed)
Windows XP
version 2002, SP 2
Browser: IE 7.0.5730.13 and Mozilla Firefox 3.0.1
The problem:
When defining in style border-width, IE shrinks the box to
adjust to the size of the box for a DIV and
it does not for IMG. The IMG is the correct size, but the
DIVs are too small.
This does not happen in Mozilla. In other words, with Mozilla,
all my boxes are displayed in the same, correct size whether
they are IMG or DIV.
Here is a simplified (but tested) version of my HTML:
<html>
<head>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test borders</title>
<style>
..colorbox {
height: 100; width:100;
border-width: 20px 20px 20px 20px;
border-spacing: 0px;
border-style: solid solid solid solid;
border-color: Red Red Red Red;
border-collapse: separate;
}
</style>
<table>
<tbody id="colortable">
<tr>
<td height="140" width="140">
<div id="divisionBlack" class="colorbox" title="Black"
style="background: rgb(0, 0, 16)"/>
</td>
<td height="140" width="140">
<img id="divisionpicture" class="colorbox" height="120" width="120"
src="F
</td>
<td height="140" width="140">
<div id="divisionPearl" class="colorbox" title="Pearl"
style="background: rgb(254, 250, 237)"/>
</td>
<td height="140" width="140">
<div id="divisionGreen" class="colorbox" title="Green"
style="background: rgb(100, 200, 100)"/>
</td>
</tr>
</tbody>
</table>
</html>
I'm not sure whether this is my mistake and one browser
is more fault-tolerant than the other, or whether there's a bug in
IE or Firefox.
I looked here
http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/
but couldn't convince myself that my problem was exactly
the same as one of the bugs listed.
Can anybody tell me if this is my mistake, or whether
there's a browser bug I need to work around?
Any suggested solutions are welcome.
Thanks,
Dave Buchan
(e-mail address removed)