Jump to content
  • 0

Проблема позиционирования блока в google chrome


slo_nik
 Share

Question

Добрый день.

 

Есть сайт.

Главная страница, блок контента съезжает вниз при просмотре в google chrome , opera.

В mozilla такой проблемы нет.

На остальных страницах в google chrome и opera блок контента отображается нормально, то есть не съезжает вниз.

 

Вот так отображается в google chrome и opera

 

 

Так должно отображаться

 

Подскажите, пожалуйста, как исправить ситуацию на главной странице?

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
#content {
    background: none repeat scroll 0 0 #fff;
    margin: -75px auto 0;
    overflow: hidden;
    padding: 0 14px;
    position: relative;
    width: 972px;
    z-index: 300;
}
.main-content {
    margin-top: 0 !important;
    top: -410px;
}
 
Зачем задавать столько margin-ов одному блоку если вы задали блоку position relative! Попробуйте так:

 

#content {
    backgroundnone repeat scroll 0 0 #fff;
    margin:0 auto ;
    overflowhidden;
    padding0 14px;
    positionrelative;
    top-410px;
    width972px;
    z-index300;
}
 
Link to comment
Share on other sites

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