Jump to content
  • 0

Центрирование страницы


cul8er
 Share

Question

Вроде бы простейший пример, не соображу где накосячил :facepalmxd:

Необходимо разместить отображение сайта по центру.

Пример:


<body>
<div class="wrapp">

<div id="left">
</div>

<div id="right">
</div>

</div>
</body>

*css style


html,body
{
font: normal 10pt Arial,Helvetica,sans-serif;
background:#D0DCF4 url(bg.jpg) repeat-x top;
}

.wrapp{
width: 1200px;
}

#left{
float: left;
/*min-height для IE*/
height: auto !important;
height: 100%;
min-height:650px;
width: 400px;
background:#D0DCF4 url(menu.jpg) no-repeat top;
}

#right{
float: right;
width: 800px;
}

Что-то к левому краю клеит :)

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Маленький вопрос к Great Rash. Не лучше ли для hasLayout использовать height: 1% ?

Смотря для какого ИЕ

Пофиг. Все равно это все надо писать не хаками, а в условных комментариях отдельным CSS-файлом.

Ага)

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