Solved

CSS: Relative positioning and IE7

Posted on 2010-08-25
7
316 Views
Last Modified: 2012-05-10
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
Comment
Question by:jabronicus
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 3

Expert Comment

by:firozmusthafa
Comment Utility
That's because of IE7 compatibility problem, always view your website in compatibility mode...
Your code is OK!
It's just IE7...
0
 
LVL 4

Expert Comment

by:Morrisproject
Comment Utility
try adding
float:left to #slideshow

and add position:relative; to #header
0
 

Author Comment

by:jabronicus
Comment Utility
Morrisproject...tried it, still displaying incorrectly in IE7

firoz...IE8 has settings for compatibility mode, not IE7, correct?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Expert Comment

by:firozmusthafa
Comment Utility
you are absolutely correct
but IE7 do have compatibility problem
refer here:
http://msdn.microsoft.com/en-us/library/bb250496(VS.85).aspx
0
 
LVL 4

Expert Comment

by:Morrisproject
Comment Utility
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
 
LVL 13

Accepted Solution

by:
myderrick earned 500 total points
Comment Utility
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
 

Author Comment

by:jabronicus
Comment Utility
myderrick - exactly! Thanks for catching that for me.  IE as always = more work.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

"I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now