Jump to content
  • 0

Проблемы с float


kaminski
 Share

Question

Есть страница с футером, прижатым к низу страницы. Сверху див с основным контентом.

В нем слева див с меню, у него задано float: left. Следующий див на всю ширину. В нем набор элементов, также с float: left. Необходимо делить плавающие элементы подзаголовками. При этом первое же разделение уносит всё, что отделено на уровень ниже дива с меню.

Вот образец: http://kaminski.dyndns.tv/look.php

Попытка задать для дива с меню height: 0px на первый взгляд помогает решить проблему, но тогда если меню разрастается по высоте, оно залазит "под футер". Смотреть: http://kaminski.dyndns.tv/look2.php

Edited by kaminski
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Делить набор плавающих айтемов справа. :) По группам. Ну типа так:


Группа 1:
<div class="item">item 1</div>
<div class="item">item 2</div>
<br />
Группа 2:
<div class="item">item 1</div>
<div class="item">item 1</div>
<div class="item">item 3</div>
<br />

И т.д.

Про overflow не понял.

Link to comment
Share on other sites

  • 0

Спасибо огромное! Буду курить доки дальше. Ибо всё равно до конца не понимаю, почему это помогло. :)

На здоровье. Вот, почитайте здесь о плавающих блоках, хорошо расписано.

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

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

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy