Firefox :before игнорирует позиции ⇐ CSS
-
Anonymous
Firefox :before игнорирует позиции
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
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
Мобильная версия