PDA

View Full Version : How to Fix the width of 3 columns Grid


albanah
06-18-2011, 08:37 AM
Hello,

I have modified the following code to get equal sidebar widths.
It is working very well with all browsers, except IE7.

I need help to figure out what is the reason so that I can use this grid.

<style type="text/css">
#gridl3_container {
position: relative;
clear: both;
float: left;
width: 100%;
}

#gridl3_midshift {
float: left;
width: 200%;
position: relative;
left: 170px;
}

#gridl3_rightshift {
float: left;
width: 100%;
position: relative;
left: 50%;
margin-left: -340px;
}

#gridl3_midmask {
float: right;
width: 50%;
position: relative;
right: 100%;
}

#gridl3_midcol {
margin-left: 390px;
width: 100%;
overflow: hidden;
}

#gridl3_leftcol {
float: left;
width: 230px;
position: relative;
margin-left: -50%;
left: 171px;

}

#gridl3_rightcol {
float: left;
width: 230px;
position: relative;
left: -60px;

}

#gridl3_content {
margin-right: 80px;
margin-left: 420px;
}
</style>

<div id="gridl3_container">
<div id="gridl3_midshift">
<div id="gridl3_rightshift">
<div id="gridl3_midmask">
<div id="gridl3_midcol">
<div id="gridl3_content">
<ul class="list_no_decoration" id="widgetlist_column2">$column[2]</ul>
</div>
</div>
</div>
<div id="gridl3_leftcol">
<ul class="list_no_decoration" id="widgetlist_column1">$column[1]</ul>
</div>
<div id="gridl3_rightcol">
<ul class="list_no_decoration" id="widgetlist_column3">$column[3]</ul>
</div>
</div>
</div>
</div>

Lynne
06-18-2011, 01:44 PM
What is the problem in IE7? Unfortunately, I cannot help with it since I do not have that browser.

albanah
06-18-2011, 06:26 PM
when I test it with IE7, all columns are shifted to left, and only small portion appears.

albanah
06-19-2011, 06:10 PM
What is the problem in IE7? Unfortunately, I cannot help with it since I do not have that browser.

See the image. The columns are shifted to letf outside the page and are invisible.

130201

Lynne
06-19-2011, 06:35 PM
I can't fix the issue since I don't have IE. And, I won't be getting IE - I have a Mac.