Jump to content
  • 0

Как отобразить по центру?


P0jar
 Share

Question

http://rado-jubile-true.ru/dwr/

По центру, через клик, должна выскакивать табличка в центральном расположении, но она почему-то падает в левый верхний угол. К ссылке на сайт, где всё видно, прилагаю скрин. Вот этот блок должен быть в центре, но он почему-то съезжает. Сайт делал не я, поэтому мои познания в тонкостях весьма ограниченны. =(

Код формы:

<div id="kmacb-form" class="modal kmacb-form kmacb-form2">
        <div class="modal-block">
            <div class="title"><a class="icon-close"></a>Понравилось это предложение?<div class="kmacb-form-rectangle"></div></div>
            <div class="content">
                <div class="padding">
                    <p>Мы расскажем Вам все об этом товаре, предложим наилучшие условия и ознакомим с подходящими акционными предложениями!</p>
                    <form method="POST" action="http://4.mirror-registrator.org/success.php">
                        <input oldvalue="" name="name" value="" placeholder="Ваше имя" type="text">
                        <input oldvalue="" name="phone" value="" placeholder="Ваш номер телефона" type="text">
                        <input value="ПЕРЕЗВОНИТЬ МНЕ" type="submit">
                        <input name="s1" class="price_field_s1" value="6900" type="hidden">
                        <input name="s2" class="price_field_s2" value="390" type="hidden">
                        <input name="s3" class="price_field_s3" value="7290" type="hidden">
                        <input name="a_aid" value="5384ff9454806" type="hidden">
<input name="a_bid" value="hvk2e5k1" type="hidden">                    <input name="timezone" value="-120" type="hidden"><input name="jswork" value="1" type="hidden"><input name="frompopup" value="0" type="hidden"></form>
                    <p class="kmacb-form-clock">Оператор перезвонит Вам через 15-30 минут</p>
                </div>
            </div>
        </div>

СSS:

.kmacb-form .modal-block { border: 0px none; box-shadow: none; font-family: Arial; border-radius: 10px; overflow: hidden; color: rgb(34, 34, 34); line-height: 1.5 ! important; width: 570px; }
.kmacb-form .modal-block .title { background: transparent none repeat scroll 0% 0%; text-shadow: none; color: rgb(34, 34, 34); font-weight: bold; font-size: 22px; border-bottom: 0px none; text-transform: none; }
.kmacb-form .modal-block .icon-close { margin: 10px; }
.kmacb-form .modal-block .padding { padding: 20px 40px 40px; }
.kmacb-form .modal-block p { font-size: 16px; text-align: left; line-height: 1.5; }
.kmacb-form form { margin: 10px 0px; text-align: center; width: 100%; height: auto; background: transparent none repeat scroll 0px center; position: static; padding: 0px; border: 0px none; }
.kmacb-form form input[type="text"] { height: 36px; line-height: 36px; color: rgb(34, 34, 34); border: 1px solid rgb(170, 170, 170); padding: 0px 10px; width: 200px; display: inline-block; text-indent: 0px; border-radius: 3px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; font-size: 14px; font-style: normal; box-shadow: none; position: static; margin: 0px 0px 10px; }
.kmacb-form form *::-moz-placeholder { color: rgb(136, 136, 136); }
.kmacb-form form :-moz-placeholder { color: rgb(136, 136, 136); }
.kmacb-form form input { float: none; }
.kmacb-form form input[name="name"] { padding-right: 10px; }
.kmacb-form form input[type="submit"] { position: static; cursor: pointer; border: 0px none; background: rgb(196, 25, 28) none repeat scroll 0% 0%; padding: 0px 10px; color: rgb(255, 255, 255); text-transform: uppercase; line-height: 38px; height: 38px; vertical-align: top; margin: 0px; display: inline-block; text-indent: 0px; text-align: center ! important; border-radius: 3px; font-style: normal; font-size: 14px; font-family: Arial,Helvetica,sans-serif; width: auto; opacity: 1; }
.kmacb-form form input[type="submit"]:hover { background: rgb(221, 7, 11) none repeat scroll 0% 0%; text-decoration: none; }
.kmacb-form2 .modal-block { font-family: "Roboto",sans-serif; }
.kmacb-form2 .modal-block { width: 460px; border-radius: 5px; }
.kmacb-form2 .modal-block .title { padding: 0px; text-align: center; line-height: 100px; position: relative; color: rgb(255, 255, 255); text-transform: uppercase; background: rgb(28, 112, 216) none repeat scroll 0% 0%; font-size: 20px; font-weight: bold; letter-spacing: 1px; }
.kmacb-form2 .modal-block .padding { padding: 30px; }
.kmacb-form2 .modal-block p { color: rgba(0, 0, 0, 0.75); line-height: 1.5; font-size: 16px; }
.kmacb-form2 form { margin: 30px 0px; }
.kmacb-form2 form * { box-sizing: border-box; }
.kmacb-form form input[type="text"] { border: 2px solid rgb(189, 189, 189); height: 56px; line-height: 56px; width: 100%; padding: 0px 15px; font-size: 20px; }
.kmacb-form form input[type="submit"] { width: 100%; background: rgb(241, 54, 80) none repeat scroll 0% 0%; height: 80px; line-height: 80px; border-radius: 40px; color: rgb(255, 255, 255); font-size: 20px; letter-spacing: 1px; font-weight: bold; margin-top: 10px; }
.kmacb-form .kmacb-form-clock { line-height: 33px ! important; padding-left: 46px; background: transparent url('undefined') no-repeat scroll left center; }
.kmacb-form .kmacb-form-rectangle { position: absolute; width: 48px; height: 24px; bottom: -12px; left: 50%; margin-left: -24px; background: transparent url('undefined') no-repeat scroll center bottom; }

.loader, .modal { background-image: url('undefined'); background-repeat: repeat; width: 100%; height: 100%; position: fixed; display: none; left: 0px; top: 0px; }
.modal { z-index: 200001; overflow: auto; font-family: Arial,Helvetica,sans-serif; font-size: 14px; color: rgb(0, 0, 0); text-align: justify; margin-left: auto; margin-right: auto; background-color: transparent; }
.modal-block { position: relative; width: 600px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.35); border: 1px solid rgb(58, 135, 173); }
.modal-block .icon-close { position: absolute; right: 0px; margin: 15px 20px; z-index: 1000; }
.modal-block .title { background: rgb(77, 131, 192) none repeat scroll 0% 0%; text-align: center; line-height: 50px; text-shadow: 1px 1px 0px rgb(58, 135, 173); border-bottom: 1px solid rgb(58, 135, 173); padding: 0px 100px; font-size: 18px; color: rgb(255, 255, 255); width: auto; height: auto; margin: 0px ! important; letter-spacing: 0px; }
.modal-block .icon-close, .icon-close { background: transparent url('undefined') no-repeat scroll 0px 0px; width: 20px; height: 19px; cursor: pointer; }
.modal-block .icon-close:hover, .icon-close:hover { background-position: 0px -19px; }
.modal p { font-weight: normal; width: auto; }
.modal .content { background: rgb(255, 255, 255) none repeat scroll 0% 0%; width: auto; overflow: hidden; margin: 0px; box-shadow: none; }
@media screen and (max-width: 540px) {
	.modal-block { width: 380px; }
	.modal-block .title { padding: 0px 50px; line-height: 39px; }
}
@media screen and (max-width: 405px) {
	.modal-block { width: 300px; }
	.modal-block .title { padding: 0px; }
}

FireShot Capture 1 - Продажа многофункционального зеркала заднего_ - http___rado-jubile-true.ru_dwr_.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

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