prg13
04.Январь.2019 16:37:47
1
Что можно исправить в этом коде? Делал не сам, с помощью форума, пошагово, читая определённую задачу и делал сам, а потом сравнивал как сделал автор.
Код у меня получился немного другой. 100%.
html,
body {
margin: 0;
padding: 0;
}
body {
width: 280px;
min-height: 250px;
padding-top: 50px;
padding-right: 10px;
padding-left: 10px;
font-size: 12px;
line-height: 1.2;
font-family: “Arial”, sans-serif;
color: #7f8c8d ;
background-color: #ecf0f1 ;
}
.post {
position: relative;
padding-left: 75px;
}
.post-title {
color: #2980b9 ;
font-size: 20px;
margin-bottom: 5px;
}
.post-date {
position: absolute;
top: 0;
left: 0;
background: white;
text-align: center;
font-size: 15px;
font-weight: 700;
border-bottom: 5px solid #bdc3c7 ;
width: 55px;
height: 55px;
line-height: 55px;
}
.post-type {
position: absolute;
top: 0;
left: 0;
top: 70px;
background: #7f8c8d url(quotes.png) no-repeat 50% 50%;
width: 55px;
height: 55px;
border-bottom: 5px solid #bdc3c7 ;
}
.post-stats {
position: relative;
display: inline-block;
margin-top: 5px;
margin-right: 10px;
padding-left: 5px;
}
.post-text {
width: 165px;
padding: 10px 15px;
background: white;
border-bottom: 5px solid #bdc3c7 ;
}
.post-stats div + a {
padding-left: 15px;
}
.post a {
color: #2980b9 ;
text-decoration: none;
}
.icon-tags {
background: url(post-challenge.png) no-repeat 0 0;
}
.icon-comments {
background: url(post-challenge.png) no-repeat -20px 0;
}
.post-stats .icon {
position: absolute;
left: 0;
width: 15px;
height: 15px;
}