gaziks52 Posted November 24, 2009 Report Share Posted November 24, 2009 (edited) <div id="container" style="background: red; width: 200px;"> <div id="1" style="float: left; height: 50px; background: blue; width: 100px;"></div> <div id="2" style="float: left; height: 50px; background: green; width: 100px;"></div> </div> Kapēc "container" div`s netiek stiepts līdzi kad iekš tā ir floutojoši div`i ??? Kā var šo kļūdu labot? Edited November 24, 2009 by gaziks52 Quote Link to comment Share on other sites More sharing options...
gaziks52 Posted November 24, 2009 Author Report Share Posted November 24, 2009 viss strādā ... uzliku parentam "overflow: auto;" paldies par atsaucību :) Quote Link to comment Share on other sites More sharing options...
Kavacky Posted November 25, 2009 Report Share Posted November 25, 2009 Tāpēc, ka vajag iemest elementu ar "clear: both". Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted November 26, 2009 Report Share Posted November 26, 2009 Kavacky - pietiks ar clear: left Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.