Jump to content
  • 0

Первый шаблон и первые проблемы..


Dark_Semi
 Share

Question

Добрый день!

Первый раз верстаю шаблон, и уже успел столкнуться с проблемой. Хочу сверстать вот такой шаблон - c75f49ab3786.jpg

СSS -

@charset "utf-8";
/* CSS Document */
* { padding:0; margin:0;}
body {background:#e7e7df url(Images/bg-body.jpg) left top no-repeat;
}
.main {
width:960px; margin:0 auto;}

.head{
height:40px;}

.content-main{
background:#fffdfd; overflow:hidden;

}

.content{
width:730px; float:right; margin:15px 15px 15px 0;
}
.post-main{
background:#ffffff; margin:0;

}
.post-main h1{
font:24px Verdana, Geneva, sans-serif;color:;background:#4ebbff;

padding:5px 20px 8px 15px; margin:0;
}
.post-main h1 a{
font: normal 24px Verdana, Geneva, sans-serif;color:#ffffff;text-decoration:none;
}
.post-main h1 a:hover{
font: normal 24px Verdana, Geneva, sans-serif;color:#ffffff;text-decoration:underline;
}
.imgstyle{
float:left; margin:0;
}
.post{
margin:0;
}
.post p{
font:12px Verdana, Geneva, sans-serif;color:#000; margin:0;
}
.post p a{
color:#423e3e; text-decoration:underline;
}






.sitebar{
width:275px; float:left; margin:0 15px 15px 0;
}
.vidget{
background:#ffffff; margin:0;


}
.vidget h2{
font:18px Verdana, Geneva, sans-serif; background:#66cc9a; color:#000; padding:5px 0;

}
.vidget ul{
list-style:none;padding:25px 15px;
}
.vidget ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 0 5px 20px;
}
.vidget ul li a{
text-decoration:none;color:#000;
}



.reklama{width:275px; float:left; margin:0 15px 15px 0;
}
.vidget2 {
background:#ffffff; margin:0;


}
.vidget2 h2{
font:18px Verdana, Geneva, sans-serif; background:#66cc9a; color:#000; padding:5px 0;

}
.vidget2 ul{
list-style:none;padding:25px 15px;
}
.vidget2 2ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 0 5px 20px;
}
.vidget2 ul li a{
text-decoration:none; color:#000;
}



.reklama1 {width:275px; float:left; margin:0 15px 15px 0;
}
.vidget22 {
background:#ffffff; margin:0;


}
.vidget22 h2{
font:18px Verdana, Geneva, sans-serif; background:#fc575e; color:#000; padding:5px 0;

}
.vidget22 ul{
list-style:none;padding:25px 15px;
}
.vidget22 2ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 0 5px 20px;
}
.vidget22 ul li a{
text-decoration:none; color:#000;
}

.footer {
font:14px Verdana, Geneva, sans-serif;
}

.reklama{width:207px; float:left; margin:0; padding:20px 0 0 0;
}
.vidget2 {
background:#ffffff; margin:0;


}
.vidget2 h2{
font:18px Verdana, Geneva, sans-serif; background:#f3a950; color:#000; padding:5px 0;

}
.vidget2 ul{
list-style:none;padding:25px 15px;
}
.vidget2 2ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 0 5px 20px;
}
.vidget2 ul li a{
text-decoration:none; color:#000;
}



.reklama1 {width:207px; float:left; margin:0; padding:20px 0 0 0;
}
.vidget22 {
background:#ffffff; margin:0;


}
.vidget22 h2{
font:18px Verdana, Geneva, sans-serif; background:#fc575e; color:#000; padding:5px 0;

}
.vidget22 ul{
list-style:none;padding:25px 15px;
}
.vidget22 2ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 0 5px 20px;
}
.vidget22 ul li a{
text-decoration:none; color:#000;
}

.footer {
font:14px Verdana, Geneva, sans-serif;
}

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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css"/>
<title>GRead beta</title>
</head>

<body>
<div class="main">
<div class="head">
</div>


<div class="content">
<div class="post-main">
<h1><a href="#">Welcom</a></h1>
<div class="post">
Hello, Friends.</p>GRead helps you to read book conveniently. But I will not tell a lot better to look screencast: </p>
If you have any question, send in to me: <a href="#">spirt40@gmail.com</a>

</div>
</div></div>


<div class="sitebar">
<div class="vidget">
<h2>Log in</h2>
<ul>
<li>- <a href="#">История макияжа</a></li>
<li>- <a href="#">Правила макияжа</a></li>
<li>- <a href="#">Уроки макияжа</a></li>
<li>- <a href="#">Макияж глаз</a></li>
<li>- <a href="#">Макияж звезд</a></li>
</ul>

</div>
<div class="reklama">
<div class="vidget2">
<h2>Реклама</h2>
<ul>
<li><center><img src=Images/reklama1.jpg></center></p><center><a href="#">Стрижки, не требующие укладки</a></center></li>
</ul>
</div>
<div class="reklama1">
<div class="vidget22">
<h2>Реклама</h2>
<ul>
<li><center><img src=Images/reklama1.jpg></center></p><center><a href="#">Стрижки, не требующие укладки</a></center></li>
</ul>
</div></div>
<div class="footer"></div>
<br />
</div></div></div>
</body>
</html>

Получилось вот что - 80c956fd0398.jpg

В общем пока не выходит.. Подскажите что и как нужно исправить, чтоб было так как на 1 картинке

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