I want to have textarea that is 500px, this is the CSS that I use for textarea:
width: 498 pixels; padding: 0px; margin: 0px;
I noticed that IE and Chrome have a 1px border by default, on the other hand, FF has a 2px border, which leads to textarea being 502px instead of 500px, any workarounds?
Just a note, I can explicitly indicate the width of the border of the techarea, i.e. border-width: 1px, but the problem here is that it does not work well with IE (by default, the textarea border in IE does not look normal when the border is set to 1px), I could change the border color, but I don't want To do this, I prefer to keep the default browser styles, I just want the width to be the same in all browsers without changing the default styles or setting the color on the border, is this possible?
css cross-browser
Waleed eissa
source share