ChrisRChamberlain
Programmer
Hi all
The following code defines three fixed width columns in an HTML page
<style>
.leftcol {
position: absolute ;
left: 0px;
top: 100px;
width: 110px;
margin: 0x;
padding: 0x;
border: 0px solid black;
background-color: #cdf9fc;
z-index:-100;
}
.middlecol {
position: absolute;
margin-left: 110px;
top: 100px;
width: 560px;
padding: 0px;
border: 0px solid black;
background-color: #ffffff;
z-index:-100;
}
.rightcol {
position: absolute;
margin-left: 670px;
top: 100px;
width: 130px;
padding: 0px;
border: 0px solid black;
background-color: #cdf9fc;
z-index:-100;
}
</style>
What modifications to the code are needed so that .middlecol.width becomes browser width minus .leftcol.width minus rightcol.width, (110+140), when resized?
Following that, what modifications to the code are needed so that .rightcol.margin-left becomes .leftcol.width plus middlecol.width when resized?
TIA
![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
The following code defines three fixed width columns in an HTML page
<style>
.leftcol {
position: absolute ;
left: 0px;
top: 100px;
width: 110px;
margin: 0x;
padding: 0x;
border: 0px solid black;
background-color: #cdf9fc;
z-index:-100;
}
.middlecol {
position: absolute;
margin-left: 110px;
top: 100px;
width: 560px;
padding: 0px;
border: 0px solid black;
background-color: #ffffff;
z-index:-100;
}
.rightcol {
position: absolute;
margin-left: 670px;
top: 100px;
width: 130px;
padding: 0px;
border: 0px solid black;
background-color: #cdf9fc;
z-index:-100;
}
</style>
What modifications to the code are needed so that .middlecol.width becomes browser width minus .leftcol.width minus rightcol.width, (110+140), when resized?
Following that, what modifications to the code are needed so that .rightcol.margin-left becomes .leftcol.width plus middlecol.width when resized?
TIA
FAQ184-2483 - the answer to getting answered.
Chris ![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)