Jump to content
  • 0

margin: 0 auto; — Google Chrome


zmachine
 Share

Question

Есть body с фоном, поверх - div с фоном.


body {
background: #0a0702 url(images/bgr.jpg) top center no-repeat;
}
.page_elem_main {
margin: 20px auto 0 auto;
text-align: left;
width: 950px;
overflow: hidden;
background: url(images/img_02.jpg) top center repeat-y;
}

Стандартная схема. Все замечательно работает во всех браузерах... кроме Хрома. В нем, если уменьшать по ширине размер окна, то выравнивание фона и блока по центру происходит не одинаково, а на каждом четном размере ширины окна все работает нормально, а на каждом нечетном - получается разница в 1 пиксель. Как быть?

362283ac88fd.jpg

Картинка

Edited by zmachine
Link to comment
Share on other sites

2 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