Jump to content
php.lv forumi

float outside parent div


Recommended Posts

<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>


Kapēc "container" div`s netiek stiepts līdzi kad iekš tā ir floutojoši div`i ???

Kā var šo kļūdu labot?

Edited by gaziks52
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...