Jump to content
  • 0

Блоки налезают друг на друга


ProMira
 Share

Question

Собственно проблема в том, что DIV'ы лезут друг на друга. v0Qy16CY.jpg

HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Alter Bridge Fan-Club</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" charset="utf-8" />
</head>
<body>
<!--HEAD-->
<div id="head">
<div id="hleft">
<table class="menu">
<tr>
<td class="name">Навигация</td>
</tr>
<tr>
<td>
<ul>
<li>link 1</li>
<li>link 2</li>
<li>link 3</li>
<li>link 4</li>
<li>link 5</li>
</ul>
</td>
</tr>
</table>
</div>
<div id="hright">
<p id="link"><img src="img/link.png" alt="link"/></p>
<br/>
<table class="menu">
<tr>
<td>Мы в соц. сетях</td>
</tr>
<tr>
<td><p><img src="img/mm.png" alt="mm"/><br/><br/><img src="img/vk.gif" alt="vk"/></p></td>
</tr>
</table>
</div>
</div>
<!--HEAD_END-->
<!--CONT-->
<div id="body">
<p id="news">Новости</p>
<table>
<tr>
<td><p>Заголовок</p></td>
</tr>
<tr>
<td><p>Сама новость</p></td>
</tr>
<tr>
<td><p id="nothers">Новость добавил: *** | Дата: ***</p></td>
</tr>
</table>
</div>
<!--CONT_END-->
<div id="end">
<p id="copy">CopyRight</p>
</div>
</body>
</html>

CSS:

BODY {
background-color: #000000;
margin:0;
padding: 0;
min-width: 1024px;
}

.name {
text-align: center;
}

#head {
top: 0;
left: 50%;
margin-left: -500px;
position: absolute;
width: 100%;
height: 360px;
background-image:url('img/head.jpg');
background-repeat: no-repeat;
}

#hleft {
position: fixed;
width: 50%;
padding: 5%;
float: left;
}

.menu {
border: 1px solid black;
border-radius: 10px;
width: 150px;
height: 150px;
background: rgba(120, 120, 120, 0.3);
}

#hright {
position: relative;
width: 50%;
padding-left: 30%;
float: right;
}


#body {
background-color: #c8af7b;
width: 512px;
margin: 0 auto;
}

Link to comment
Share on other sites

1 answer 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