Jump to content
  • 0

Вопрос по float


NoMe
 Share

Question

Почему левый блок не на одном уровне с правым в фф и хроме? Как поправить?

[[left_sid]**********************************[right_side]]

<div>
<span id="left_side">1111</span>
<span id="right_side">1111</span>
</div>

div { background: blue; }
span { background: red; }
#left_side{}
#right_side{ float: right;}

в догонку,

как разнести списки по сторонам страницы?

<div style="background-color:blue;">
<ul style="background: red;">
<li><a href="#">11111</a>
</li>
<li><a href="#">11111</a>
</li>
</ul>
<ul style="background: red;">
<li><a href="">11111</a></li>
<li><a href="">11111</a></li>
</ul>
</div>

Edited by NoMe
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

<div style="background-color:blue;">
список 1
список 2
</div>

В общем, пока сделал 1 список инлайн, и левый и правый флоат для 1 и 2 списка, соответственно. Объясните как обрабатывается див, в который они вложены? Почему бэкграунд между списками не меняется?

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