A
Axel
hello I have managed to get 3 areas aligned beside each other, like this
AREA1 AREA2 AREA3
I originally wanted to use Panel control but they always displayed on
top of each other.
The CSS that I am using is this:
div.hpanel
{
display: inline-block;
vertical-align:top;
background-color: Yellow !important;
border: solid 2px White;
padding-right:15px;
margin-right: 5px;
}
(background and border for testing purposes only
AREA1
GroupPanel:Sort By-
| o Priority |
| o Account |
------------------
AREA2
<p>Number of Recs: <label/></p>
<p>Account list: <dropdown/></p>
AREA3
<p>Comment:<BR>
<TextBox multiline>
</p>
So I tried this
<div>
<div class=hpanel>
AREA1
</div>
<div class=hpanel>
AREA2
</div>
<div class=hpanel>
AREA3
</div>
</div>
In Firefox (3.0) they are shown as expected, blocks in a line:
http://tinyurl.com/dyeqkc
In IE7 they all stretch over the container of the outmost div (a TD from
the master page) and are shown underneath each other:
http://tinyurl.com/djzyzh
Any idea how to fix this? Would display: table-row (container) and
table-cell (areas) help at all? Is there maybe something built into IE
that makes all divs stretch to 100% of their container by default?
thanks in advance
Axel
AREA1 AREA2 AREA3
I originally wanted to use Panel control but they always displayed on
top of each other.
The CSS that I am using is this:
div.hpanel
{
display: inline-block;
vertical-align:top;
background-color: Yellow !important;
border: solid 2px White;
padding-right:15px;
margin-right: 5px;
}
(background and border for testing purposes only
AREA1
GroupPanel:Sort By-
| o Priority |
| o Account |
------------------
AREA2
<p>Number of Recs: <label/></p>
<p>Account list: <dropdown/></p>
AREA3
<p>Comment:<BR>
<TextBox multiline>
</p>
So I tried this
<div>
<div class=hpanel>
AREA1
</div>
<div class=hpanel>
AREA2
</div>
<div class=hpanel>
AREA3
</div>
</div>
In Firefox (3.0) they are shown as expected, blocks in a line:
http://tinyurl.com/dyeqkc
In IE7 they all stretch over the container of the outmost div (a TD from
the master page) and are shown underneath each other:
http://tinyurl.com/djzyzh
Any idea how to fix this? Would display: table-row (container) and
table-cell (areas) help at all? Is there maybe something built into IE
that makes all divs stretch to 100% of their container by default?
thanks in advance
Axel