-
Posts
224 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Calendar
Store
Posts posted by IvanRu08
-
-
Всем привет. Прошу помочь. У меня имеется макет шириной 1000px. Нужно отцентрировать его. Вроде делаю все правильно, фон шапки становить по центру, а фон body нет.
<!DOCTYPE html>
<html lang = "ru">
<head>
<title>Портфолио</title>
<link href = "style.css" rel = "stylesheet" type = "text/css" />
<meta charset = "utf-8" />
<!--[if lt IE 9]>
<script src = "http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<header>
<div class = "header_bg"></div>
</header>
</body>
</html>*{margin: 0; padding: 0;}
body {margin: auto; width: 1000px; height: 800px; background: #ededed url(images/body_bg.jpg) no-repeat;}
.header_bg {height: 124px; background: url(images/header_bg.jpg) no-repeat;}Помогите, плиз.
Помогите отцентрировать фон
in HTML Coding
Posted
Спасибо большое! Помогло! Странно, но фон у меня шириной как раз 1000px