Help With Nav Menu Error

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Help With Nav Menu Error

randomdood
my webpage http://switchfoot.ifastnet.com/index.php 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.

Reply

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta 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.

Reply

randomdood
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.)

Reply

jlhaslip
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.

Reply

Lozbo
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..

Reply

randomdood
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : nav, menu, error

  1. Navigation Menu
    Anyone help please? (1)
  2. Iframe Menu Question
    (1)
    I am trying to make a menu for my site. I made an HTML page with the text/links of the menu, then I
    embedded that page in all the main "content" pages using an iframe. The problem is that whenever I
    click the links in the menu they open INSIDE of the iframe instead of switching the whole browser to
    the page the link is directed to. I hope I'm not TOO hard to understand. /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Oh, and on this page it has
    the perfect example of what I want. http://www.w3schools.com/tags/tag_iframe.asp See ....
  3. Menu Errors In Internet Explorer
    (4)
    I am not sure if this is the correct section, but this is related to HTML. I have some menus at the
    top of my forum, which work perfectly in Firefox. But my members started complaining that they were
    not working correctly, and when I tested it in Internet Explorer, I found that only two of the menus
    show up, and the others show up as plain text below. Here is a screenshot of what the menus look
    like in the two browsers: I have thought of something though. The HTML i used for my menus was
    the only code I could find for to make some menus. But I noticed that this forum....
  4. Error In Css (or Html)
    (5)
    Well i am currently working on a project, and for this i need to fix this little error: Code is:
    CODE $this->frm .= "<style type=\"text/css\">
                            <!--                         .style1 {color: #000000}
                            -->                         </style>{$this->top}
                            <from action=\"$PHP_SELF\"
    method=\"post\" name=\"\">
                            <table width=\"800�....
  5. Menu Bar Aligning
    (1)
    I am creating a website for an outreach service. I am running into a reoccuring problem. I can get
    everything to center correctly while I am viewing it under 1024x768. When I view it under 800x600
    the menu itself pulls to the right. If I take away the absolute value it puts the menu on the left
    margin. You can view the source by going to this website: http://www.faithcity.org/test.html . Any
    advice would be greatly appreciated.....
  6. Image Roll Over Drop Down Menu Help
    (2)
    Ok I been searching for days now on a half way descent tutorial on how to do a Image Roll Over Drop
    Down Menu in CSS without the use of javascript, I been seeing alot of the suckerfish set up but of
    course no one goes in to detail on how to set up the image rollover version of it. Plus I don't
    want the dhtml or the javascript setup just good ole pure css. Also I need ot be able to control
    multiple menus in one script as well. CODE <!DOCTYPE html PUBLIC "-//W3C//DTD
    XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict....
  7. Mailto Error
    (8)
    Well I have been very busy trying to get my site up and running and I was trying to make a form for
    people to fill out to apply to affiliate with my site but when they click submit it opens up a new
    email instead of sending the form. This is the code and link.
    http://plenopticdesign.be/index.php?id=affiliates CODE <form method="get"
    action="mailto:plenopti@plenopticdesign.be"> What is your name? <BR>
    <INPUT NAME="name" VALUE="enter name here" TYPE="text"> <P>
    What is your site name? <....
  8. Dhtml Menu That Reads A Database
    (7)
    I wanted to make a DHTML menu that read off a database, so it woud work with a menu system in
    PHP-nuke, called somarre patreballe, or something like that. Anybody can help me? I don't know
    much of anything about DHTML.....
  9. Drop Down Menu
    (1)
    This little code will disable the select option in a drop down menu, sometimes people like to add
    titles to their menu. insted of Pick One Choise 1 try Choise 1 with
    optgroup users can't select Pick One, it is just use as a title....

    1. Looking for nav, menu, error

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for nav, menu, error

*MORE FROM TRAP17.COM*
advertisement



Help With Nav Menu Error



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE