gallery div block is lining up wrong in IE
Bromius
Joined: 2007-06-14
Posts: 8 |
Posted: Fri, 2008-02-22 17:43 |
http://www.crossfitlexky.com/wpg2 I've been scratching my head on this one. In IE 7 the gallery DIV tag lines up below the left sidebar. In FireFox it displays correctly. I've looked over the HTML and CSS, but I can't figure this one out. I was hoping someone might be able to help. It looks like http://gallery.menalto.com/node/72547 has had the same issue as I. Thanks in advance for any help! Bryan |
|
Posts: 8
Okay, by removing more and more of the HTML, I've determined the problem.
<div id=wrapper>
<div id=floatme>
Left menu
</div>
<div id=content style='width:600px;'>
content
</div>
</div>
If I specify a width in the css of the content div, it gets pushed down so that the top of the content div lines up with the bottom of the floatme div.
I'm sure there's a workaround and I'm doing research, but I figured I'd post my status updates here.
Posts: 8
Well, I found what I believe is a solution. I found this: http://forums.asp.net/t/1075532.aspx
However, I didn't need to use the .brclear div at the bottom.
#container
{
height:auto;
width:auto;
min-height:100%; /*For IE7 */
min-width: 100%;
background-color: Navy;
overflow:hidden;
}
#left
{
background-color: Teal;
float: left;
width:49%;
height:auto;
min-height:100%; /*For IE7 */
}
#content
{
background-color:Aqua;
height:auto;
width:auto;
min-height:100%; /*For IE7 */
margin-left: 51%;
margin-right: 0;
}
.brclear
{
clear: both;
height: 1px;
margin: 0;
font-size: 1px;
line-height: 1%;
padding: 0;
border: 0;
background-color: transparent;
}
Posts: 1378
Thanks for posting the fix.. We are in the process of merging this forum into a new forum to provide more resources to better deal with all Gallery2 CSS / Layout requests for help.
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 2
I'm sorry, I'm confused by the solution offered above. What file was being modified here? I'm sure I should know from context, but I'm not familiar with all the code.
tia!
doug