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

 
Bromius

Joined: 2007-06-14
Posts: 8
Posted: Fri, 2008-02-22 18:46

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.

 
Bromius

Joined: 2007-06-14
Posts: 8
Posted: Fri, 2008-02-22 22:05

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;
}

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-02-24 22:21

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

 
skuldugary

Joined: 2008-04-03
Posts: 2
Posted: Wed, 2008-04-09 21:16

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