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

CSS: Relative positioning and IE7

I am using relative positioning for the header of http://pnwprop.u59.ssllcweb.com/index.cfm

It is displaying correctly in Firefox and Chrome, naturally IE is wreaking havoc. Haven't used relative position extensively so any help on getting this worked out greatly appreciated.

thanks
0
jabronicus
Asked:
jabronicus
  • 2
  • 2
  • 2
  • +1
1 Solution
 
firozmusthafaCommented:
That's because of IE7 compatibility problem, always view your website in compatibility mode...
Your code is OK!
It's just IE7...
0
 
MorrisprojectCommented:
try adding
float:left to #slideshow

and add position:relative; to #header
0
 
jabronicusAuthor Commented:
Morrisproject...tried it, still displaying incorrectly in IE7

firoz...IE8 has settings for compatibility mode, not IE7, correct?
0
Independent Software Vendors: 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!

 
firozmusthafaCommented:
you are absolutely correct
but IE7 do have compatibility problem
refer here:
http://msdn.microsoft.com/en-us/library/bb250496(VS.85).aspx
0
 
MorrisprojectCommented:
It is a position issue which should be able to be resolved testing different methods of floats and relative divs.

Unfortunately it would take some time to download all the appropriate files and put the page into a testing environment.

I would suggest to try changing some of the positioning etc
0
 
myderrickCommented:
First of all add to header:

1. text-align: left (the default is text-align: center set on the body
2. Give it a higher z-index value (eg 5)

Issue should be ok now:

Good luck

MD
0
 
jabronicusAuthor Commented:
myderrick - exactly! Thanks for catching that for me.  IE as always = more work.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

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