Solved

IE7 and input box sizes

Posted on 2006-11-28
5
187 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 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
remove background quote mark from widget 6 51
How can I increase the size of this logo 5 35
Input box gone wrong 8 24
CSS: How do I override in-line styling 11 15
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

770 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