You don't need any special treatment for IE 7 for this. The problem is that:
Code:
a {
padding-top:200px;
}
is meaningless because the a tag is an inline element. The fact that FF 'does it' is an error, if it were really applying that padding, there would be huge gaps in the layout. What you can do that will work for both, is:
Code:
#faq a {
padding-top:200px;
display:block;
}
#faq p {
margin-bottom:-200px;
}
By having the a tags display block, the padding will be applied and there will be gaps. By making the p tags have negative bottom margin, pulls the content below each of them back up into and filling those gaps.
You will also need to make:
Code:
#q {
z-index:100;
margin-bottom:-200px;
}
and:
Code:
/* content for non-ie */
body>#wrapper #content {
position:relative;
min-height:500px;
padding: 20px;
margin-top:200px;
z-index:10;
padding-bottom:200px;
}
A little tweaking may be necessary to get the exact layout in the faq area that you want due to subtle changes this may cause.
Note: Before trying this, make sure to get rid of both the IE 7 specific and the FF/other browser specific styles for the #faq a tags.
Bookmarks