crmpicco
02-17-2008, 09:58 PM
I have been struggling with a HTML issue with the following page between what is shown in FF 2 and IE 7.
Firefox 2 shows the page perfect, however IE 7 shows it with a space between the tabs at the top and the main table. I've removed the cellpadding/spacing from the main table, but it's still there. Any ideas?
http://www.ayrshireminis.com/index2.php
This is my code:
<table align="center" style="width: 80%; background-color: #FFFFFF;" bgcolor="FFFFFF"><!--cellpadding="5" cellspacing="5"-->
<tbody>
<tr>
<td width="100%">
<table style="width: 100%;" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="1" cellspacing="0" width="100%" id="main-box"><!-- style="background-color: #FFFFB1;" -->
<tr>
<td width="100%">
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td><h1>Welcome to AyrshireMinis.com</h1></td>
</tr>
.......
CSS for tabs:
#main {
width: 62em;
position: absolute;
top: 65px;
left: 65%;
margin-left: -31em;
padding: 0;
}
#main-box {
clear: left;
margin: 0;
padding: 1em;
background: #ffc33e url(/images/main-box-bg.gif) top left repeat-x;
border-top: 1px solid #fff;
}
Any help appreciated.
Picco
:(
Firefox 2 shows the page perfect, however IE 7 shows it with a space between the tabs at the top and the main table. I've removed the cellpadding/spacing from the main table, but it's still there. Any ideas?
http://www.ayrshireminis.com/index2.php
This is my code:
<table align="center" style="width: 80%; background-color: #FFFFFF;" bgcolor="FFFFFF"><!--cellpadding="5" cellspacing="5"-->
<tbody>
<tr>
<td width="100%">
<table style="width: 100%;" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="1" cellspacing="0" width="100%" id="main-box"><!-- style="background-color: #FFFFB1;" -->
<tr>
<td width="100%">
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td><h1>Welcome to AyrshireMinis.com</h1></td>
</tr>
.......
CSS for tabs:
#main {
width: 62em;
position: absolute;
top: 65px;
left: 65%;
margin-left: -31em;
padding: 0;
}
#main-box {
clear: left;
margin: 0;
padding: 1em;
background: #ffc33e url(/images/main-box-bg.gif) top left repeat-x;
border-top: 1px solid #fff;
}
Any help appreciated.
Picco
:(