By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,785 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,785 IT Pros & Developers. It's quick & easy.

How to prevent DIVs from overlaying?

dorinbogdan
Expert 100+
P: 839
Hi,

I cannot fix this link to look correct in FireFox, as it looks in IE.

NOTE: I have access to modify any HTML code, except the top Table and bottom DIV (they are dynamically included by the provider).

In FireFox the bottom DIV (of the provider) overlays my main DIV.

Please advise,
Dorin.
Apr 5 '07 #1
Share this Question
Share on Google+
5 Replies


drhowarddrfine
Expert 5K+
P: 7,435
You will never get IE to try and perform like modern browsers without a proper doctype. See the sticky at the top of this board about doctypes.

For your overlay problem, you have a div that is absolutely positioned. This removes that div and its contents from the normal flow which is why that footer is allowed to rise up. Change it to position:relative and see if that solves the problem although you may have to adjust its positioning.

Then validate your html and css for a list of errors all this generates.
Apr 5 '07 #2

dorinbogdan
Expert 100+
P: 839
1. With relative position it appears almost similar, the bottom Div was shifted few lines bellow. (please check the link to see)

2. How to validate HTML and CSS?

Thanks,
Dorin.
Apr 5 '07 #3

dorinbogdan
Expert 100+
P: 839
Even the <hr> style appears a little different now, the Doctype solved the problem:
[html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/html]

Thanks,
Dorin.
Apr 5 '07 #4

Expert 100+
P: 1,892
1. With relative position it appears almost similar, the bottom Div was shifted few lines bellow. (please check the link to see)

2. How to validate HTML and CSS?

Thanks,
Dorin.
Here is a link to the validator.
Apr 5 '07 #5

dorinbogdan
Expert 100+
P: 839
Thanks for help drhowarddrfine and AricC.
Apr 6 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.