Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE Bug with Relative Position

Status
Not open for further replies.

charIie

Programmer
Feb 14, 2006
21
US
Hello, hopefully someone can help me here.

I have an issue with my webpage. In Firefox it works fine. What I have done is position everything using relative positioning so it works in both IE/FF. In IE it seems the original spot that they were placed still shows up and can be hilighted with the cursor. The actual image that shows up in not in the same position. This causes a problem because it extends the original div everything is placed in very far down the page. There is nothing in this area exept these hidden images/divs and makes it look like it is extended for no reason thus making it look bad.

Is there anyway to hide these images so this does not occur?

If you don't know what I mean I can try to upload it to the web and show you. Thanks

Brian
 
Please upload the code somewhere and show it to us. Really hard to give you advice on this, but it looks like it might not even be a bug.
 
What I have done is position everything using relative positioning so it works in both IE/FF

You don't have to give "everything" relative positioning for it "to work" in Firefox or IE.

You only have to give specific elements relative positioning if they need it for a specific reason.

So... it sounds like you've over-engineered your CSS, or possibly even blindly fudged it, rather than creating CSS that was designed to do a specific job.

Perhaps you could post your code (or a URL to it) - it may well be that most (if not all) of the relative positioning is not needed.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi there,

The only time i use relative positioning in my web pages is for the container div. when i use absolute positioning, all i have to do is place it within my container div and it sits in the same place with firefox, ie, and safari
 
I would advise against absolute positioning unless absolutely necessary though. It takes elements out of the document flow and elements cease to interact with each other. Add another line of text and you need to redo the design in the worst case scenario...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top