Solved

IE7 and input box sizes

Posted on 2006-11-28
5
191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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 Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Suggested Courses

628 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