Hello. I'm Aleksandar Vacić, professional web developer and wine maker in the making.
Learn more about me or see what I can do for you.

My work & services

Tip: input sizing in IE

Weekend discovery (could be hot water for some)…Look at this example page. No CSS at all is applied to the first line of input fields. input { font-size: 1em; } is applied to the second line.

Now, open this in IE, and try setting your default text size to Largest and then to Smallest. You will see that first two fields do not change their size at all, while the second two obey. In few other browsers I tried, this does not happen.

What exactly is the core of the problem is unknown to me. One guess is that IE sets the predefined field size in pixels, and it is known fact that IE can’t resize pixels. When the unit is changed to ems, it works as you expect.

No matter what is the cause, this is the issue to watch for.

tags: CSS
Comments: 0

Posted 5 years, 8 months agopermanent link

trackback URL: http://aplus.rs/css/tip-input-sizing-in-ie/trackback/

Voices from the crowd

No comments posted yet. Your chance to be the first.

Post your opinion


? You need to enter your email, but rest assured it will not be published.

? Enter the link and it will be published.
? This blog strives to behave properly, as per XHTML 1.0 Strict spec. You can use the following tags, but please use them wisely:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
? I have enabled comment moderation so if your comment does not shows up after you submit it, don't worry. I will review it and if it's nice and to the point, I'll approve it. This measure is up mostly to fight spam and trolls.

Tags or categories or topics...

Lots of ramblings on this blog...might be easier for you to find your juice through these tags:

Post a job. Find one. authenticjobs.com