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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -