css - IE9 - unwanted padding inside div when inner div is absolute and outer div is relatively positioned -
i have been battling problem 6 hours on ie. there seems padding when use before tag position absolute.
css
.rteeditable{ background-color:green; position: relative; width: 200px; height: 400px; min-height: 400px; } .rteeditable p{ padding-left: 46px; } .rteeditable:before{ position: absolute; height: 100%; width: 40px; content:''; background-color:red; }
html
<div class="rteeditable" contenteditable="true"> <p> hello teast </p> </div>
the code have written jsfiddle
here images better explanation.
chrome
ie9