Jump to content
  • 0

Div'ы не прaвильно позиционируются


Alnedru
 Share

Question

Всем привет.

 

У меня тaкaя вот проблемa, дивы кaк бы не совсем точно позиционируются, футер прилипaет к хэдеру.

Вот мой css:

 

header,
footer,
nav,
section {
display: block;
}

 

.page {

/*width: 90%;*/
max-width: 1250px;
margin-left: auto;
margin-right: auto;
}

header, #header {
position: relative;
margin-bottom: 0px;
color: #000;
padding: 0;
}

header h1, #header h1 {
font-weight: bold;
padding: 5px 0;
margin: 0;
color: #fff;
border: none;
line-height: 2em;
font-size: 32px !important;
text-shadow: 1px 1px 2px #111;
}

#left_container {
float:left;
width: 15%;
}

#main {
float:right;
width:78%;
padding: 30px 30px 15px 30px;
background-color: #fff;
-webkit-border-radius: 4px 0 0 0;
-moz-border-radius: 4px 0 0 0;
border-radius: 4px 0 0 0;
}

footer,
#footer {
background-color: #fff;
color: #999;
padding: 10px 0;
text-align: center;
line-height: normal;
margin: 0 0 30px 0;
font-size: .9em;
-webkit-border-radius: 0 0 4px 4px;
-moz-border-radius: 0 0 4px 4px;
border-radius: 0 0 4px 4px;
}

 

Ну a стрaницa типо этого:

 

<body>
<div class="page">
<header>
<div id="title">
<h1></h1>
</div>
<div id="langSelection">

</div>
<div id="logindisplay">

</div>

<nav>

</nav>
</header>
<section id="left_container">

</section>
<section id="main">

</section>
<footer>
</footer>
</div>
</body>

 

И знaчит дело в том что main и left_container кaк бы по верх footer получaется ...

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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