hi,
I have some code that works in all web browsers except IE 5.2 for Mac
(heard this one before? :-)
the CSS code basically creates two id's, one is a container for the
other. eg:
CSS Code:
....
#main
{
background-image: url(../images/background_2.jpg );
width: 550px;
height: 390px;
margin: 30px auto 0 auto;
padding: 0;
border: 0px solid orange;
}
#main_scroll
{
overflow: auto;
float: left;
width: 550px;
max-width: 550px;
height: 310px;
margin: 40px 0 0 0;
padding: 0;
border: 0px solid orange;
}
....
HTML Code:
....
<div id="main">
<div id="main_scroll">
main stuff...
</div>
</div>
....
basically, main creates a box 550px wide and 390px high, then inside
this box should sit main_scroll, which will contain information that
may need to be scrolled...
This code works on all browsers, except IE for Mac AND works on IE for
Mac when I set "border: 1px..." on main_scroll. I don't understand why
IE for Mac doesn't position this correctly when there is no border - it
simply lines up the main_scroll box with the main box - instead of
having it sit inside the main box, 40px down...
thanks in advance.
Tim