Firefox :before игнорирует позицииCSS

Разбираемся в CSS
Ответить
Anonymous
 Firefox :before игнорирует позиции

Сообщение Anonymous »


I have this input with some content defined in the :before tag. In IE and Chrome, it works perfectly, but Firefox makes a mess of it.

The content should be visible in the input tag, but in Firefox the content is visible in the input-group-addon.

HTML:

CSS:

.iban:before { content: 'CH'; color: #999; position: absolute; padding-left: 7px; padding-top: 7px; z-index: 1000; } .iban > input { padding-left: 29px; } I reproduced it in a fiddle and I'm hoping someone faced this issue before and can help me out.

https://jsfiddle.net/9wme1roo/3/


Источник: https://stackoverflow.com/questions/344 ... -positions
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

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

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «CSS»