Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
When a web page has many div,When I set the last div that over-flow='scroll',it seems weird that the div before will change location!!How to advoid these effect?
HTML
 <div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'west',split:true" title="items" style="width: 220px;">
        <div id="ttleft" class="easyui-tabs">
            <div title="item1" style="padding: 10px">
              div1
            </div>
            <div title="item2">
             div2
            </div>
        </div>
    </div>
    <div data-options="region:'center',title:'Result'">
        <div>
            <input class="easyui-datetimebox" required style="width: 150px" />
            <a href="#" class="easyui-linkbutton">Search</a>
        </div>
        <div>
            <table class="easyui-datagrid" data-options="singleSelect:true,fit:true,fitColumns:true"
               pagination="true">
                <thead data-options="frozen:true">
                    <tr>
                        <th data-options="field:'a1'">a1</th>
                       <th data-options="field:'a2'">a2</th>
                    <th data-options="field:'a3'">a3</th>
                    </tr>
                </thead>
            </table>
        </div>
    </div>
</div>

when I add the overflow:scroll to the div's table,it affect the before,here is the picture:
https://www.yousendit.com/download/UVJocHBEays1aWI1SE1UQw
Posted
Updated 24-Mar-13 5:19am
v3
Comments
vinodkumarnie 29-Mar-13 3:38am    
When you apply overfolow then width of divisions will vary. so mention width properly..

1 solution

!important may provide you some help,

check this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900