Jump to content

Menu not displaying correctly.


smithmr8

Recommended Posts

Hi,

http://www.bytefish.co.uk/client_DFC/index.php

 

In firefox, the menu displays perfectly. The subitems of the menu are supposed to have a fixed width and be padded.

In IE, the width/padding just isn't there.

 

Yet, on the original site, it works fine. No code is different.

 

Help much appreciated. 

Link to comment
https://forums.phpfreaks.com/topic/207032-menu-not-displaying-correctly/
Share on other sites

You have no doctype. With no doctype, browsers don't know what 'rules' you've built your webpage by, and so they each interpret it in the way they see fit. Cross-browser compatibility is near impossible if you don't have one. It's basically step one of building web pages, particularly since it's the very first thing that is on the web page.

 

When you add one, your page will go out of whack, since the browser will start rendering your page against a set of rules, rather than guessing. So you will have to fix your page even in FF after adding the doctype. After you have that, then you can start looking at IE.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.