jquery - Horizontal scrollbar not showing up -
update: using overflow-x (it question wrong)
the horizontal scrollbar should show in case, not
<div style="overflow-x:scroll; width:400px"> <div style="float:left; width:300px">abc </div> <div style="float:left; width:300px">abc </div> <div style="clear:both"></div> </div>
how use div overflow in case?
to answer question, child divs not cause overflow of parent div. current design not cause overflow of parent because both children set float:left
it seems assuming children stacked horizontally; turn float off , put them in table of width 600px
in adjacent cells , see does.
also note css overflow property highly browser-dependent. browsers use overflow:scroll
, use overflow:auto
.
Comments
Post a Comment