Jump to content
  • 0

Что не правильно с этим кодом?


mech
 Share

Question

Предполагается, что в данном случае один блок div вложен в другой, но фактически это не вполне получается. Только в IE8 отображается так как я бы этого хотел, в фф, опере и в том же IE8 в режиме совместимости как-то получается, что второй div как бы не вложен в первый а идет после него...

<html lang="ru-ru" xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru-ru">
<head>
<meta content="text/html; charset=windows-1251" http-equiv="Content-Type">

<title>Тест</title>

</head>
<body>

<div style="width: 900px; background-color: #d0d0d0;">
<div style="margin-left: 10px; float: left; width: 300px; padding-top: 12px; background-color: #d0d0d0;">
<p>123123</p>
</div>
</div>

</body>

</html>

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Надо прям кнопку уже делать в меню [родительскому элементу overflow: hidden;], тыкаешь на нее и ответ готов :)

А если серьезно пора дополнять потихоньку ЧаВО

UPD: Хотя там это есть.

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