Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

IE7 and input box sizes

Posted on 2006-11-28
5
Medium Priority
?
194 Views
Last Modified: 2008-01-09
Hi there, i have quite a large application which predates IE7, it displays perfectly in IE6, however in IE7 the input boxes, such as text and dropdowns have shrunk!

My CSS is:

input, textarea, select
{
      font-size:11px;
      height:13px;
      font-family:Tahoma, Garamond, Arial;      
      color:#293E69;
}

How do i correct that so it works the same in IE6 and IE7?

Many thanks
0
Comment
Question by:Type25
  • 2
5 Comments
 
LVL 30

Expert Comment

by:VirusMinus
ID: 18033924
put this in your html code, just before your inside your <head> and </head> tags but after your main CSS file is referenced

<!--[if gte IE 6]>
       <style type="text/css">
         input, textarea, select
         {
             font-size: 11px; /*change*/
             height: 13px; /*change*/
         }
      </style>
<![endif]-->


Note: you can add other properties such as width's etc and alter heights and font-sizes until you can make the inputs look the same as IE6
0
 
LVL 9

Author Comment

by:Type25
ID: 18035142
I have about 200 aspx pages.

Will that above code work in a .css file?
0
 
LVL 30

Accepted Solution

by:
VirusMinus earned 2000 total points
ID: 18036317
no it won't. but you can try this: http://snook.ca/archives/html_and_css/targetting_ie7/
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question