Jump to content
  • 0

Пустое место когда убираю рекламный блок Adsense


Weskiers
 Share

Question

Здравствуйте!

На сайте, когда убираю рекламный  код Adsense появляется пустое место.

1020995205_.thumb.jpg.aad226307bc860c32b8b7ed89dfd4357.jpg

 

Когда рекламный блок на месте, то разрыва между футером и контентным блоком нет.

Рекламный блок подключается через функцию include

<!--таблица комментарии-->
    <?php include("blocks/komments2.php");?>
<!--таблица комментарии-->

Код CSS:

Скрытый текст

/* Timeweb test comment */
/* Timeweb test comment new*/
/* Vadim comment new2*/
/* Vadim comment new3*/
/* new */
/* Vadim comment new4*/
body{
  margin: 0px;
  padding: 0px;
  max-width: 1000px;
  background: url(./bg3.jpg) repeat center top fixed;
}

html, body, #wrapper{

margin: 0px;
padding: 0px;
margin: 0 auto;
}

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600&subset=latin,cyrillic);
*{box-sizing: border-box;}


#container{
    display: table;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    background-color: #272727;
    box-shadow: #000 0px 0px 40px 10px;
}


#header{
  max-width: 100%;
  width: 100%;
  min-height: 60px;
  background-color: #000;


}

#weskiers-logo{
  background: url(./weskiers.jpg);
  height: 60px;
  width: 190px;
  max-width: 190px;
  margin-left: 4%;
  float:left;
}




#top-menu{
  float: left;
  font-family: 'Open Sans', sans-serif;
  font-style: oblique;
  list-style: none;
}


#top-menu li a{
  transform:text-decoration(underline);
  transition:0.3s all;
  line-height: 1.4;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}


#top-menu li a:hover{
  color:#4ca4cc;
  transition:0.3s: all;
}


#vk{
  background: url(./vk.png);
  width: 36px;
  height: 36px;
  float: right;
  margin-right: 10px;
  border-radius: 7px;
  margin-top: 10px;
}


#vk {
  transform:scale(1);
  transition:0.3s all;
}

#vk:hover{
  transform:scale(1.2);
  box-shadow: #4ca4cc 0px 0px 9px 3px;
  transition:0.3s all;
  cursor: pointer;

}



#header ul {
 list-style: none; /*убираем маркеры списка*/
}

#top-menu li {float:left;}
#top-menu li a{
 color:#fff;
 text-decoration: none;
}

#top-menu li {
    padding-left: 40px;
}

#logo img{
max-width:100%;
width: 100%;
height: auto;
border-bottom: 3px solid #5fabcd;
}

#wrapper{
height: auto;
width: 100%;
float:left;
}

#content {
  float: left;
  width: 75%;
  height: 100%;
}

#content h2{
    color: #4ca4cc;
    font: 400 27px Georgia;
    font-family: 'Open Sans', sans-serif;
    font-style: oblique;
    font-weight: bold;
    margin-left: 40px;
    float: auto;
    border-bottom: 1px solid #4b7d7b;
}


#content h1{
    color: #4ca4cc;
    font: 400 27px Georgia;
    font-family: 'Open Sans', sans-serif;
    font-style: oblique;
    font-weight: bold;
    margin-left: 40px;
    float: auto;
    border-bottom: 1px solid #4b7d7b;
}

p {
  font: 400 17.1px Verdana,Geneva,sans-serif;
  line-height: 180%;
  color: #a0a0a0;
  padding-left: 10px;
}




#content ul {
	
  font: 400 17.1px Verdana,Geneva,sans-serif;
  line-height: 180%;
  color: #a0a0a0;
  padding-left: 40px;
}


#content img {
  margin-left: 10px;
  box-shadow: #000 0px 0px 10px 3px;
  max-width:85%;
  height:auto;
}

#content iframe {
  text-align: center;
  margin-left: 5px;
 box-shadow: #000000 0px 0px; 
  width:90%;
  max-width: 95%;
  
}

#content table img{
box-shadow: #000000 0px 0px 0px 0px;
}



.ssylki {color:#4cc7ce;}
.ssylki:hover{	color:#59c537;}


.ssylkinazad{
	color:#4cc7ce;
	padding-left:20px;
	font-family: 'Open Sans', sans-serif;
}

.ssylkinazad:hover{	color:#59c537;}

#right {
      float: right;
      width: 24%;
      margin-top: 17px;
      text-decoration: none;
      box-shadow: #000000 0px 0px 15px 5px;
}


#footer{
  background-color: #000;
  height: 100px;
  width: 100%;
  max-width: 100%;
  float: left;
}



#footer2{
  background-color: #000;
  height: 140px;
  width: 100%;
  max-width: 100%;
}

#footer2 ul {
text-decoration:none;
}

#footer2 li a {
text-decoration:none;
}

#footer3{
  background-color: #000;
  text-align:center;
  color:#cfd0d0;
  font-size: 17px;
  font-style: oblique;
  border-top:2px solid #0f4d7b;
  padding-bottom: 10px;
}


#right-menu{
  padding-left: 17px;
  text-decoration:none;
}

#right-menu li{
  text-decoration:none;
  list-style: none;
}


#right-menu ul li {
    text-decoration: none;
    color:#999;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-decoration:none;

}


#right-menu ul {
 list-style: none; /*убираем маркеры списка*/
 font-size: 20px;

}

#right-menu li a{
      text-decoration: none;
      font-size: 17px;
      line-height: 160%;
      color: #c4d5dc;
      font-family: 'Open Sans', sans-serif;
}

#right-menu li a{
transition:0.5s all;
text-decoration: none;
}

#right-menu li a:hover{
color:#4ca4cc;
text-decoration: underline;
cursor: pointer;
transition:0.5s all;
}


#right-menu {
background: url(./rightimg.jpg) repeat center top;
}


 #burger-menu{
   display: none;
   visibility:hidden;
    width: 100%;
    min-width: 150px;
    border-bottom: 1px solid black;
 }


#poisk{
float:right;
width: 50%;
}

#poisk2{

}


  @media screen and (max-width:880px)
  {
    #right-menu{display:none; visibility: hidden;}
    #right{display:none; visibility: hidden;}
    #burger{visibility: visible; display: inline-block;}
    #burger-menu{visibility: visible; display: inline-block;}
    #content{width:98%;margin-left:7px;}
   }




   nav {background: #413F3C;}
   nav ul {
     margin: 0;
     padding: 0;
     list-style: none;
     text-align: center;
   }
   nav ul:after {
     content: "";
     display: table;
     clear: both;
   }
   nav a {
     text-decoration: none;
     display: block;
     transition: 0.5s linear;
   }
   .topmenu > li {
     float: left;
     position: relative;
     border-left: 1px solid black;
   }
   .topmenu > li:first-child {
     border-left: 0;
     width: 100%;
   }


   .topmenu > li > a {
     padding: 10px 30px;
    font-size: 20px;
    text-transform: uppercase;
    color: #FEFDFD;
    letter-spacing: 2px;
    font-weight: bold;
   }
   .topmenu > li > a.active,
   .submenu a:hover {color: #31beff;}
   .topmenu .fa,
   .submenu .fa {
     margin-left: 5px;
     color: inherit;
   }
   .submenu {
     position: absolute;
     z-index: 5;
     min-width: 100%;
     background: white;
     border-top: 1px solid #CBCBCC;
     border-left: 1px solid #CBCBCC;
     border-right: 1px solid #CBCBCC;
     visibility: hidden;
     opacity: 0;
     transform-origin: 0% 0%;
     transform: rotateX(-90deg);
     transition: 0.5s linear;
   }
   .submenu li {position: relative;}
   .submenu li a {
     color: #282828;
    padding: 10px 20px;
    font-size: 17px;
    border-bottom: 1px solid #545454;
   }
   .submenu .submenu {
     position: absolute;
     left: 100%;
     top: -1px;
     transition: 0.5s linear;
   }

   nav li:hover > .submenu {
     transform: rotateX(0deg);
     visibility: visible;
     opacity: 1;
     text-align: left;
   }

.submenu li:hover{  background-color: #222;  transition:0.5s all;}

#p_in_footer{
font-size:20px;
color:#4cc7ce;
}

#vk_comments,
#vk_comments iframe {
    width: 100% !important;
}

b.style_white{
	font-size:15px;
    color:#DCDCDC;
}

#podpis { /* Абзац с классом cite2 */
    color: #DCDCDC; /* Цвет текста */
  font-size:15px;
margin-top: 0px; /* Отступ сверху */  
  } 

 

Буду благодарен за помощь в решении вопроса)

Когда рекламный блок присутствует, то разрыва между блоками нет.

 

1674608627_.thumb.jpg.8ab76a50f3c7e25276bcfd3902850efe.jpg

Link to comment
Share on other sites

4 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