Hi, here's the code.
The 50% width only appears to be about 45% in IE5.0.
I can corect this with a javascript bi at the end of the page
divLeft.style.width = (divMain.offsetWidth / 2).toString() + "px";
That sets the width to TRUE 100%. But I have A LOT of DIVs. And then this won't resize with the screen (for different res') unless I write my own events on window_resize.
Am I doing something wrong? Or is this a bug in IE5?
Can anybody stick this code into IE 5.5 or 6 please?
ta,
Jim.
Code:
<DIV style="width: 100%; height: 450px; border: 1px solid black;">
<DIV style="width: 50%; height: 100%; border: 1px solid fuchsia">
</DIV>
<DIV style="width: 50%; height: 100%; left: 50%; border: 1px solid aqua;">
</DIV>
</DIV>
The 50% width only appears to be about 45% in IE5.0.
I can corect this with a javascript bi at the end of the page
divLeft.style.width = (divMain.offsetWidth / 2).toString() + "px";
That sets the width to TRUE 100%. But I have A LOT of DIVs. And then this won't resize with the screen (for different res') unless I write my own events on window_resize.
Am I doing something wrong? Or is this a bug in IE5?
Can anybody stick this code into IE 5.5 or 6 please?
ta,
Jim.