пятница, 25 ноября 2011 г.

Step-2: STYLE & HTML

*{
margin:0;
padding:0;
}
body{
font-size:12px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background-color:#F5F5F5;
}
#main{
width:1290px;
margin:auto;
overflow:hidden;
margin-top:40px;
/*border:1px solid #c0c0c0;
background-color:#fefefe;*/
}
#left{
position:fixed;
width:180px;
/*min-height:400px;*/
border:1px solid #F1F1F1;
background-color:white;
}
#left h2{
margin:20px;
font-family:Tahoma;
letter-spacing:0.12EM;
}
#left span{
display:block;
margin:20px;
margin-top:0px;
color:#B9BBBF;
}
#menu{
margin:20px;
border-top:1px solid #DDDFE2;
border-bottom:1px solid #DDDFE2;
}
#menu a{
display:block;
line-height:24px;
color:#545658;
text-decoration:none;
}
#menu a:hover{
color:#000;
text-decoration:underline;
}
#center{
overflow:hidden;
width:1080px;
margin-left:220px;
/*background-color:blue;*/
}
#center_right{
float:right;
width:265px;
min-height:300px;
background-color:orange;
}
#center_left{
float:left;
width:775px;
min-height:1000px;
/*background-color:violet;*/
}
.post{
min-height:200px;
line-height:20px;
margin-bottom:40px;
padding:30px;
border-top:1px solid #E1E1E1;
border-left:1px solid #E1E1E1;
box-shadow:1px 1px 2px #AAA;
background-color:white;
}
.post_content{
text-align:center;
}
.post_text{
margin-top:20px;
margin-bottom:20px;
color:#545658;
}
.post_food{
color:#A1A3A6;
}
.post_food a{
color:#A1A3A6;
text-decoration:none;
}

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>foto blogs</title>
<link rel="stylesheet" href="stils.css" type="text/css">
</head>
<body>
<div id="main">
<div id="left">
<h2>Foto blogs</h2>
<nav id="menu">
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
<a href="#">Link 4</a>
<a href="#">Link 5</a>
</nav>
<span>
&copy;2011 foto blogs
</span>
</div>
<div id="center">
<div id="center_right">

</div>
<div id="center_left">
<div class="post">
<div class="post_content">
</div>
<div class="post_text">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<div class="post_food">
<a href="#">2 comments</a>
</div>
</div>
</div>
</div>

</div>
</body>
</html>

Комментариев нет:

Отправить комментарий