Wee Bubba
01-24-2007, 09:14 AM
ive just spent hours trying to get a <DIV> to overflow properly and now im at my wit's end! please help me!
i have placed a datagrid inside a <DIV>. my aim is for the grid to have a horizontal scrollbar underneath it if the contents would otherwise overflow.
at the moment in firefox the <DIV> shows BOTH horizontal and vertical scrollbars. i only need horizontal.
in IE 7 there's no scrollbars! so when the datagrid contains a lot of data the grid overflows causing the page to have a horizontal scrollbar, not the <DIV> like i wanted.
<div style="overflow:auto;">
thats what im trying so far. i also tried setting margin to -1 and width to 100% no joy.
help!
i have placed a datagrid inside a <DIV>. my aim is for the grid to have a horizontal scrollbar underneath it if the contents would otherwise overflow.
at the moment in firefox the <DIV> shows BOTH horizontal and vertical scrollbars. i only need horizontal.
in IE 7 there's no scrollbars! so when the datagrid contains a lot of data the grid overflows causing the page to have a horizontal scrollbar, not the <DIV> like i wanted.
<div style="overflow:auto;">
thats what im trying so far. i also tried setting margin to -1 and width to 100% no joy.
help!