I have a website that uses a combination of div's and a table in the layout:
www.vipmotorcar.com
FF is rendering the page as I would like it to - with the menu buttons underneath the logo div. IE7 is not - the buttons are ignoring the block layout div and laying on top of the logo.
I originally tried doing the entire thing with div's but my own shortcomings prevented me from following through and used the "easy way out" of a table just so I could move on with the rest of the design.
Still stuck with this bit though - I've tried setting absolute positioning on the table but then I get the opposite problem - IE looks fine and FF is too far down. Can anyone tell me what I'm doing wrong?
Here's some of the relevant underlying CSS:
Code:
body
{
background-image: url(/img/metal.jpg);
background-repeat: repeat;
}
.wrapper1
{
background-color: Black;
border: 1pxsolidwhite;
margin-top: 20px;
margin-bottom: 20px;
margin-left: 50px;
margin-right: 50px;
}
.wrapper2
{
margin: 25px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 10px;
background-image: url(/img/bg1.jpg);
background-repeat: repeat;
border: 1pxsolid#101010;
text-align: justify;
text-indent: 20px;
}
.wrapper3
{
font-size: .65em;
text-align: center;
font-family: arial,helvetica,sans-serif;
}
.wrapper2p
{
color: White;
font-size: 1em;
font-family: Verdana,Tahoma,arial,helvetica,sans-serif;
}
.cssnav
{
position: relative;
top: 20px;
float: left;
width: 192px;
height: 90px;
margin: 0;
padding: 0;
font-family: arial,helvetica,sans-serif;
background: url(img/button2.jpg)no-repeat;
overflow: hidden; /* for ie to hide extra height*/
}
.cssnava
{
display: block;
float: left;
width: 192px;
height: 90px;
font-size: 11px;
text-decoration: none;
overflow: hidden; /* for ie to hide extra height*/
}
.cssnava:hover
{
}
.cssnavimg
{
border: 0;
}
.cssnava:hoverimg
{
visibility: hidden;
}
.cssnavspan
{
position: absolute;
left: 0px;
top: 15px;
text-align: center;
width: 192px;
height: 90px;
cursor: pointer;
color: black;
font-size: 1em;
font-weight: bold;
}
__________________
Trudeau Consulting LLC
Please login or register to view this content. Registration is FREE
|