Добрый день!
С данным кодом добился 97% совпадения, используя !important. Как можно скорректировать такой код:
- для получения 100%
- возможно ли исключить !important из кода?
Собственно, применял их чтобы "Альбом"не уходил наверх,а котаны в стороны.
Понимаю, что тема не новая, но все же прошу взглянуть, если возможно, поскольку визуально код смотрится без нагромождений, а сам метод показался простым, хоть и “нечистым”.
html,
body {
margin: 0;
padding: 0;
}
body {
width: 550px;
height: 300px;
font-size: 12px;
font-family: Tahoma, Arial, sans-serif;
}
.profile {
padding: 5px 10px;
}
.profile img {
display: block;
padding: 10px;
border: 2px solid #34495e;
border-radius: 8px;
}
.profile .photo {
float: left;
width: 152px;
}
.profile .info {
float: left;
width: 368px;
margin-left: 10px;
}
#info-title,
.profile .info h2{
margin: 0 !important;
padding: 10px!important;
font-weight: normal;
font-size: 12px;
color: #ffffff;
background: #34495e;
border-radius: 4px;
}
.fact div {
padding: 10px;
background: white;
}
.fact:nth-child(odd){
background: #ecf0f1;
}
.fact:after {
content: “”;
display: table;
clear: both !important;
}
div.fact .title {
float: left;
width: 120px;
text-align: right;
color: #7f8c8d;
}
div.fact .value {
margin-left: 140px;
color: #34495e;
}
.albums {
margin-top: 5px !important;
}
div.albums img {
float: left;
margin-right: 5px !important;
}
.albums img:last-child {
margin-right: 0 !important;
}
span.button {
display: block;
height: 30px;
margin: 5px 0;
line-height: 30px;
text-align: center;
color: #ffffff;
border-radius: 4px;
}
.button.stroke {
background: #3498db;
}
.button.feed {
background: #2ecc71;
}
.button.startle {
background: #e74c3c;
}