Jump to content
  • 0

обрыв фона


cyklop77
 Share

Question

уважаемые знатоки, помогите пожалуйста исправить ситуацию.

при увеличении масштаба страницы (ctrl + колесико мыши)точечный фон контейнера .box_2 не продолжается до подвала. а хотелось бы чтобы продолжался

Edited by cyklop77
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
а раньше вместо них использовал html и body

Как использовали? Точно те же стили только для html и body соответственно? И была точно такая ситуация?

Edited by alexandr_v-vich
  • Like 1
Link to comment
Share on other sites

  • 0

Switch74, У меня лис 10ый, проблема есть

IE9 - проблема есть

Chrome 17 - проблема есть

Safari 5.1.2 - проблема есть

Только опера понимает, что нужно

Edited by alexandr_v-vich
Link to comment
Share on other sites

  • 0

хых... если вы про то, что точек нет при изменении масштаба меньше 50%, то вы замете, что верстка при этом ломается

.box_2 имеет min-height: 100%; он и растягивается на 100%, не пойму зачем вам нужны были эти box_1 и box_2

я бы внес footer в box_1, тогда возможно станет лучше

Edited by Switch74
Link to comment
Share on other sites

  • 0

я смотрел в последних версиях оперы и фаерфокса. и виндовых, и линуксовых. проблемы есть.

попробую внести футер в box_1. спасибо

а раньше вместо них использовал html и body

Как использовали? Точно те же стили только для html и body соответственно? И была точно такая ситуация?

да

Edited by cyklop77
Link to comment
Share on other sites

  • 0

обычно я это делаю так:


<!DOCTYPE html>
<html>
<head>
<style>
*{margin:0px;padding:0px;}
html,body{height:100%;min-height:100%;}
#body{position:relative;margin:0 auto;min-height:100%;width:1000px;background:#ddd;overflow:hidden;}
#content{}
#footer{position:absolute;left:0px;right:0px;bottom:0px;height:100px;background:#bbb;}
</style>
</head>
<body>
<div id="body">
<div id="content">content</div>
<div id="footer">footer</div>
</div>
</body>
</html>

  • Like 1
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