Jump to content
  • 0

Сьезжает верстка в firefox


мурамаса
 Share

Question

Добрый день, сверстал страницу с блоком новостей которые идут под меню колонкой, по одному блоку в ширину контейнера. В хроме все нормально и в файрфокс на моем ноутбуке с разрешением 1366х768 тоже, но с другого компа верстка сьезжает именно в firefox. Немного полазил в браузере и блок становится на место если убрать overflow: hidden, но тогда текст соотвественно вылезает за пределы блока. Скинул весь css на всякий случай.

body {
  margin: 0;
  padding: 0;
  background: url(/img/casfon.jpg);

}




.frame {
  width: 1200px;
  background-color: white;
  margin: 0 auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.box {
  width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}


header {
  background: url(/img/casino.jpg) no-repeat center;
  height: 300px;

}
/* БЛОК НОВОСТЕЙ ГЛАВНОЙ СТРАНИЦЫ*/


.news {
  margin-left: 100px;
  margin-bottom: 100px;


}

.news-block {

  width: 800px;
  padding: 10px;
  margin: 0 0 40px 0;
  height: 310px;
  overflow: hidden;
  text-overflow: clip;
  font-size: 15px;
  text-align: justify;
  line-height: 1.3;


}

.news-block h2 {
  font-size: 22px;

}
.news-block h2 a {
  text-decoration: none;

}

.news-image {
  float: left;
  width: 300px;
  height: 280px;
  padding: 10px;
}




/* СТИЛИ ЦЕНТРАЛЬНОГО МЕНЮ */

.menu {
  float: left;
  border-bottom: solid red 2px;
  width: 100%;
  margin-bottom: 50px;

}

.menu li {
  list-style-type: none;
  font-size: 25px;
  float: left;
  margin: 0px 0 auto 50px;
  padding: 20px;


}

.menu li a {
  text-decoration: none;
}
.menu li:hover {
  background-color: red;
}



/* СТАТЬЯ КОНТЕНТ ОСНОВНОЙ */

.title {
  text-align: center;
  font-size: 25px;

}

.content {
  font-size: 18px;
  text-align: justify;
  float: left;
  margin: 30px auto 50px auto;

}

.content p {
  overflow: hidden;
}

.image {
  width: 330px;
  height: 300px;
  margin: 0 auto 20px 20px;
  clear: both;

}

.icon {
  width: 25px;
  height: 25px;
  float: left;
  margin-right: 25px;
}



/* СТИЛИ ДЛЯ ФОРАМТИРОВАНИЯ ТЕКСТА */

.red {
  color: red;
}

/* ПОДВАЛ */

footer {
  font-size: 13px;
  text-align: center;
  padding-top: 40px;
  display: block;
  height: 30px;
  margin-top: -60px;
  clear: both;
  border-top: 2px solid red;

}

 

problem2.jpg

problem1.jpg

Link to comment
Share on other sites

1 answer 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

  • Similar Content

    • By Mondeus
      Доброго всем времени суток. Прошу помощи. Научите принципу изменения футера. Движок Xenforo. Версия 2.2.10. Стиль дефолтный. Что именно нужно в итоге на фото примере. Мой шаблон app.footer less имеет следующее значение. 
      .p-footer { .xf-publicFooter(); a { .xf-publicFooterLink(); } } .p-footer-inner { .m-pageWidth(); .m-pageInset(); padding-top: @xf-paddingMedium; padding-bottom: @xf-paddingLarge; } .p-footer-row { .m-clearFix(); margin-bottom: -@xf-paddingLarge; } .p-footer-row-main { float: left; margin-bottom: @xf-paddingLarge; } .p-footer-row-opposite { float: right; margin-bottom: @xf-paddingLarge; } .p-footer-linkList { .m-listPlain(); .m-clearFix(); > li { float: left; margin-right: .5em; &:last-child { margin-right: 0; } a { padding: 2px 4px; border-radius: @xf-borderRadiusSmall; &:hover { text-decoration: none; background-color: fade(@xf-publicFooterLink--color, 10%); } } } } .p-footer-rssLink { > span { position: relative; top: -1px; display: inline-block; width: 1.44em; height: 1.44em; line-height: 1.44em; text-align: center; font-size: .8em; background-color: #4682B4; border-radius: 2px; } .fa-rss { color: white; } } .p-footer-copyright { margin-top: @xf-elementSpacer; text-align: center; font-size: @xf-fontSizeSmallest; } .p-footer-debug { margin-top: @xf-paddingLarge; text-align: right; font-size: @xf-fontSizeSmallest; .pairs > dt { color: inherit; } } @media (max-width: @xf-responsiveMedium) { .p-footer-row-main, .p-footer-row-opposite { float: none; } .p-footer-copyright { text-align: left; padding: 0 4px; // aligns with other links } }  

    • By zeiger2
      Здравствуйте! У меня стоит задача, что при наведении на блок li строка должна поменять цвет, в том числе и картинка. Я меняю картинку с помощью 
      background-image: none;     background: url(../img/check_icon_red.png) left no-repeat;   Но теперь картинка позицианируется не там где должна, её можно поставить на место только вручную, через -100px. Нужно поставить ровно туда, где она была. Должна быть в одном ряду с другими
    • By Mix9
      есть див с 5 img, при уменьшении экрана див выходит за него. Я добавил overflow: auto для этого div в надежде на то, что я смогу прокручивать фотки с помощью скроллбара, однако даже с ним почему-то я не вижу часть фоток которые вышли за границу. Что с этим можно сделать? класс video повторяется 5 раз, я тут оставил только 1 
      .content{ width: 90%; background-color: #333; } .video{ margin: 0px 4px 0px 4px; width: 310; display: flex; flex-direction:column; } .video_button_text{ margin-top: 10px; display: flex; flex-direction: row; font-size: 20px; color: white; } .video_text_div{ display: inline-block; width: 250px; } .video_text{ text-align: justify-all; margin: 0px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .slidan_videos{ margin: 0px 10px 0px 20px; overflow: auto; width: auto; margin-bottom: 50px; display: flex; flex-direction: row; justify-content: space-around; } <div class="content"> <div class = slidan_videos> <div class = video> <div> <a href = 'ссылка'><img class="img" src=""картинка"></a> </div> <div class = video_button_text> <div class = avatarka_div> <a href="ссылка" target="_blank"><img class = avatarka src="картинка"></a> </div> <div class = video_text_div> <p class = video_text><a href="ссылка">текст</a></p> </div> </div> </div>
    • By Марко
      Добрый день. Начинающий программист, столкнулся с проблемой. Селектор .class не работает должным образом. Несмотря на правильное, я надеюсь, описание, на web-странице не отображается ни одно изображение. С чем может быть связано? Заранее спасибо за помощь. 



×
×
  • 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