gaziks52 Posted November 24, 2009 Report 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
gaziks52 Posted November 24, 2009 Author Report Posted November 24, 2009 viss strādā ... uzliku parentam "overflow: auto;" paldies par atsaucību :) Quote
Kavacky Posted November 25, 2009 Report Posted November 25, 2009 Tāpēc, ka vajag iemest elementu ar "clear: both". Quote
rATRIJS Posted November 26, 2009 Report Posted November 26, 2009 Kavacky - pietiks ar clear: left Quote
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.