Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.