Evans Posted August 24, 2012 Report Share Posted August 24, 2012 Всех приветствую.Возникла проблема.При увеличении / уменьшении масштаба просмотра страницы сайта, смещаются блоки.Например:Обычный вид:Уменьшение:Требуется зафиксировать положение. Quote Link to comment Share on other sites More sharing options...
0 USF Posted August 24, 2012 Report Share Posted August 24, 2012 скоре всего, потому что вы их сдвигаете неправильно.код можно? а лучше страницу Quote Link to comment Share on other sites More sharing options...
0 Evans Posted August 24, 2012 Author Report Share Posted August 24, 2012 Вот код формы логина:/* Login form */#login { float: left; margin: 16px 0 0 12px; padding-bottom: 15px;}#login_top h4 { text-align: center; padding-top: 6px; font-weight: bold; color: #f7841d;}#login_nav { float: left; margin: 26px 201px;}#login_top { width: 418px; height: 31px; background: url(../images/header_login.png) 0 0 no-repeat;}#login_middle { width: 418px; background: url(../images/middle_login.png) 0 0 repeat-y;}#login_bottom { width: 418px; height: 3px; background: url(../images/bottom_login.png) 0 0 no-repeat;}input[type=submit] { cursor: pointer; width: 190px; height: 28px; color: #fff; border: none; background: #000;}input[type=text], input[type=password] { padding-left: 8px; line-height:26px; background: none; border: none; outline: none; color: #A3A3A3; width: 190px; height: 28px; font-size: 11px; background: url(../images/form.png) no-repeat;} Quote Link to comment Share on other sites More sharing options...
0 USF Posted August 24, 2012 Report Share Posted August 24, 2012 margin: 26px 201px;это вы таким образом блок позиционируете? Quote Link to comment Share on other sites More sharing options...
0 Evans Posted August 24, 2012 Author Report Share Posted August 24, 2012 USF, да, а как нужно? Верстаю менее недели, так что извиняйте, не знаю всех тонкостей. Quote Link to comment Share on other sites More sharing options...
0 USF Posted August 24, 2012 Report Share Posted August 24, 2012 как я понимаю это margin от края монитора. поэтому и возникает такая проблема. я из рисунка не могу понять, где он должен находится. по центру? если да, то используйте margin: 0 auto; (не забудьте ширину задать блок при этом) Quote Link to comment Share on other sites More sharing options...
0 Evans Posted August 25, 2012 Author Report Share Posted August 25, 2012 Не очень понимаю , поподробнее пожалуйста. Quote Link to comment Share on other sites More sharing options...
0 cyber_ua Posted August 25, 2012 Report Share Posted August 25, 2012 а вы % не пробывали использовать? Quote Link to comment Share on other sites More sharing options...
0 Evans Posted August 25, 2012 Author Report Share Posted August 25, 2012 Например, margin: 5% 0 0 20%? Вроде тоже самое. Quote Link to comment Share on other sites More sharing options...
0 USF Posted August 25, 2012 Report Share Posted August 25, 2012 Не очень понимаю , поподробнее пожалуйста. где Вам нужно, чтобы блок размещался? Quote Link to comment Share on other sites More sharing options...
0 Evans Posted August 26, 2012 Author Report Share Posted August 26, 2012 Вот тут Quote Link to comment Share on other sites More sharing options...
0 Evans Posted August 29, 2012 Author Report Share Posted August 29, 2012 up & Quote Link to comment Share on other sites More sharing options...
Question
Evans
Всех приветствую.
Возникла проблема.
При увеличении / уменьшении масштаба просмотра страницы сайта, смещаются блоки.
Например:
Обычный вид:
Уменьшение:
Требуется зафиксировать положение.
Link to comment
Share on other sites
11 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.