Нашел что в стилях вида новостей мешает.А что не пойму.Не подскажите мне, далекому человеку, что я ненормально сделал
сайт: http://1978dagada.ucoz.net/
Добавлено (24.03.2017, 08:50)
---------------------------------------------
сами стили:
Код
/**********новости**************/
.col-sm-3, .col-sm-9 {
position: relative;
min-height: 1px;
padding-left: 10px;
padding-right: 10px;
}
@media (min-width: 768px) {
.col-sm-3 {float: left;width: 25%;}
.col-sm-9 {float: left;width: 75%;}
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.row:before,
.row:after
{
display: table;
content: " ";
}
.row:after{
clear: both;
}
@media (min-width: 1230px) {
.row, .my-row {
margin-left: -10px;
margin-right: -10px;
}
}
.news-list table.dayAllEntries{
margin-bottom: 50px;
}
.news-element{
margin-top: 30px;
padding-top: 30px;
border-top: 1px solid #C7C7C7;
font-size: 17px;
}
#allEntries > div:first-of-type .news-element,
.news-list .archiveEntries > div:first-of-type .news-element{
margin-top: 0;
padding-top: 0;
border-top: 0;
}
.news-element h5{
margin-top: -5px;
}
.news-element h5{
margin: -5px 0 20px;
font-size: 16px;
line-height: 1.2;
}
.news-element h5 a{
text-decoration: none;
color: #00487F;
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
}
.news-element h5 a:hover{
color: #2E2E2E;
}
.news-element img{
width: 100%;
}
.news-date{
position: absolute;
top: 0;
left: 0;
padding: 2px 15px;
color: #fff;
background: #00487F;
font-size: 14px;
}
.news-list .element-info{
margin: -5px 0 15px;
}
.element-info{
margin: 0 0 15px;
font-size: 16px;
color: #969696;
}
.element-info a{
text-decoration: none;
color: #F27935;
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
}
.element-info a:hover{
color: #2E2E2E;
}
.element-info span{
margin-right: 10px;
}
.element-info .fa{
margin-right: 4px;
}
.img-wrapper img {width: 100%;}
.img-wrapper{position: relative;}
.news-element .img-wrapper a:after{
background: url(http://kldou24.ucoz.ru/img/link-icon.png) 50% 50% no-repeat rgba(0,0,0,0.7);
background-size: 0 0;
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
content:"";
display: block;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0;
z-index: 5;
}
.news-element .img-wrapper a:hover:after{
opacity: 1;
background-size: 36px 36px;
}
@media only screen and (max-width: 767px) {
.news-element .img-wrapper{margin-bottom: 20px;}
.news-element{padding-top: 40px;}
}
.element-content{
padding: 20px;
background: #fff;
border: 1px solid #E2E6E7;
-webkit-transition: all 200ms ease-out;
-moz-transition: all 200ms ease-out;
-o-transition: all 200ms ease-out;
transition: all 200ms ease-out;
}
@media only screen and (min-width: 768px) {
.img-wrapper .text{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 10px;
background: rgba(0,0,0,0.5);
color: #fff;
}
.tex{float: right;}
/*****************************/