Jump to content
xisto Community
Sign in to follow this  
randomdood

Help With Nav Menu Error

Recommended Posts

my webpage http://forums.xisto.com/no_longer_exists/ has something wrong with it, as soon as you load the page the menu appears on the right then goes to it's spot on the left, any help? As Soon As Poosible would be nice but there is no rush really.... (only hosting it there for now, when i finish the website it will be moved to trap)

Notice from saint-michael:
Title needs to be more discriptive then just help, so as to get a better answer from the members.

Share this post


Link to post
Share on other sites

Well, to begin with, this code segment should be at the top of your page and not in the middle.

	    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/ http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title><style type="text/css"></style></head><body

Once you fix that, let us know. It may be the cause of whatever problems you are having.

Share this post


Link to post
Share on other sites

well, the site is actually php but the coding that i think is messing it up is in html, if that makes sense. but that code you gave me screws it up....maybe cuz it's a php doc (yes i know this is html section but the problem i'm having is with the html not the php)edit: it doesn't really screw it up but it makes the page load take about 2mins which isn't right.)

Edited by randomdood (see edit history)

Share this post


Link to post
Share on other sites

If you are using 'includes', simply erase the DTD, style,html and body tags from the 'included' file. Php will parse the 'included' file as html automatically, so the duplicate html tags are messing things up. My guess.

Share this post


Link to post
Share on other sites

If you see the html output (the source code from the browser, not the original source php you upload to the server) you will find two declarations of the <html> opening tag, which is wrong.jlhaslip thinks you are using php includes to call to another file(s) from the index.php, if that is the case, then you should remove all unnecesary tags from the included file, for example:If you have index.php, menu.php and footer.php (self descriptive), and you call the later into index.php, you dont have (and actually it is wrong if you do so) to have a DTD, <html>, <head>, and <body> tags in menu.php and footer.php again, they are already declared in index.php...Hope you understand.. good luck..

Share this post


Link to post
Share on other sites

well basically i havethe index.php which then the php gets the content from a folder, and i currently do not have a dtd, so yeh.....also jlhaslip was correct, however i took the tags out you told me too and still......nothing changes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.