473,473 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Firefox and Div positioning

1 New Member
Hi,

I've been searching google for hours now trying to work out why my page wont display correctly in firefox. the site can be seen at: www.pureblue.it and as you'll notice in firefox the menu covers the top of the text area.

I know its linked to my css but i just cant work it out Any help would be greatly appreciated!

The offending div uses the following element from my stylesheet

#content {
width:712px;
height:500px;
margin:0px 0px 0px 0px;
padding:0;
text-align:left;
display:block;}

Thanks in advance!

Matt
Oct 30 '06 #1
1 1411
drhowarddrfine
7,435 Recognized Expert Expert
content2 has an extra closing bracket in your css but that won't fix it.
Your doctype is incomplete and IE is in quirks mode. You should also use a strict one:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

You fooled me by having inline styling along with the external sheet. Remember that floated and absolutely positioned elements are removed from the normal flow. This is why the lower div is rising up. It is NOT happening in IE because it is a bug in IE. Firefox is performing correctly.
Oct 30 '06 #2

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

Similar topics

16
by: Aurelio | last post by:
I'm developing a Web application with ASP.NET and C# and i'm having problems with Opera and FireFox. The controls don't appear situated correctly. Why?. What ca i do?
2
by: Joey | last post by:
Hello all, I have been designing a site where the main content is enclosed in one table, and that table needs to be centered (the centering is done by using another container such as a div or...
3
by: Dave | last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various DIVs (panels), one of which is in grid layout. The controls in this DIV render correctly in IE, but when using Firefox they...
4
by: TheCeej | last post by:
I'm sorry to post what is ultimately a myspace problem, but I'm sure I'd still be having this problem with any html/css document, so the answer would more than likely be able to help anyone out. I'm...
8
by: jamesrharper | last post by:
hi everyone i got into the old browser compatability issues because i wanted to make my site centred. now i dont know a great deal about html and css to be quite honest but i found what i needed...
2
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using...
3
by: DanWeaver | last post by:
I have a panel on an asp page that has about 20 controls on it, an ajax update panel within it- text boxes, listboxes, imgbuttons etc. I would like to be able to copy this panel- ie put similar but...
8
by: GA | last post by:
I have a weird CSS problem at: In firefox, the most recent version, none of the links work: header photo/logo is supposed to link, the buttons on the right are rollover links. I can't even...
6
by: dontwantspam | last post by:
Hello everyone, I'm working on this css site redesign http://www.maranathamalta.com/4given/testingmain.php I've tested on my machine running XP using Firefox 2.0.0.4, IE6 and IE7. It looks...
2
by: agbee1 | last post by:
Hello: I've finally made the effort to ween myself from overly using tables and use CSS for my positioning. However, I am having a problem with my navigational menu properly aligning in Firefox,...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.