P
P
Pavel2014-10-15 18:47:08
css
Pavel, 2014-10-15 18:47:08

How to solve the problem of layout (positioning) in IE?

Good afternoon. Faced the problem of layout under IE.
The site in Chrome, FF, Opera browsers looks like this:
4566e34e52c74bd0b0b6f6ee6985205c.pngLink to image
A in IE11 browser like this:
63339a4a686a438db3e79372552bf76f.pngLink to the
CSS image of the registration block:

#registration_bl {                          /*    главный div для блока регистрации    */
  position: absolute;
  margin-top: 40%;
  margin-left: -40%;
  
  left: 50%;
  width: 80%;
        height: 0%;
}

#reg_cell {         /*    родительский div для поля ввода и кнопки отправки    */
  position: relative;
  height: 100%;
  width: 66%;
        left: 50%;
        margin-left: -33%;
}

#email_field {                          /*    поле ввода    */
  position: relative;
  width: 82%;
  padding: 5px;
  border: solid white;
  border-width: 0.2em;
  
  background: transparent;
  color: #a7a7a7;
  outline:none;
  font-family: HelveticaNeueCyr_Light;
  font-size: 1.5em;
}

.bSend {                          /*    Соответственно, кнопка отправки    */
  position: absolute;
  height: 100%;
  width: 15%;
  font-size: 1.8em;
  border: 0px solid;
  background: #ffffff;
        outline: none;
}

PS: reset.css is included. Also a link to codepen , but it's slightly incorrect there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kirenkov, 2014-10-15
@ProgramCodePav

Please tell me why you started doing all this in absolutes? Why is float: left for both elements not nice? Well, or display: inline-block, and set the parent to font-size: 0 and they will again be back to back. Everywhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question