• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

Weird Behavior from IE8 with text boxes in div

Developing this page:

https://physicianspark.pdswebpro.com/contact.aspx


When I go to this page in any browser other than IE8, including IE7, it builds fine.  In IE8 the contact us form ends at the bottom of what is the backgound image of the "ContentBox" DIV.  I originally didn;t have the height attrib set but I have since tried 100% and auto.  Aybody know what I am missing?

My IE8 is version 8.0.6001.18702

Thanks
0
bcolladay
Asked:
bcolladay
  • 3
  • 2
1 Solution
 
SteveZzCommented:
Never tried this before but placing this tag in your header should make the page emulate IE7 so that it should look ok.  Hope it works.
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Open in new window

0
 
Dave BaldwinFixer of ProblemsCommented:
It looks the same in Firefox and IE8 to me.  You do have some issues with your DOCTYPE declaration.  It mixes two different ones and that may cause some problems because browsers do use that to figure out how to display things.  And 'id' is not a valid attribute for <head> and <meta> tags.
0
 
bcolladayAuthor Commented:
Thanks,

I will do this as a last resort.  But the IE8 rendering is better(closer to firefox and chrome) for the other elements.  So I would rather see if there is a css setting, that won't screw the other browsers in the process, that will fix this.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
bcolladayAuthor Commented:
Dave, which doctype declaration would you recommend?  the id attribute is for some CMS stuff I am doing to dynamically assign some metadata.
0
 
bcolladayAuthor Commented:
I fixed my doc type and it fixed it for me.  Thanks
0
 
Dave BaldwinFixer of ProblemsCommented:
Here is the list of accepted DOCTYPEs http://www.w3.org/QA/2002/04/valid-dtd-list.html .  Note that only the XHTML DOCTYPE adds something to the <html> tag.  I normally use the HTML 4.01 Transitional DOCTYPE because it is easier to work with.  The strict DOCTYPES add some behavior that I am too lazy to deal with.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now