JolteonShock
A very inactive person
Hi,
Right now I'm working on an HTML website, but I've been having problems. At first the menu displays fine, but when you click on one of the links, a part of the header pops up there and the right menu is moved to that side, in a very messed up way. I'm using Butterfree's Simple Div Layout. I am also using HTML includes to include my menus. Right now, I can't post a link because I am working on the files in my computor and haven't acquired hosting yet.
Things I have tried:
Here's the code for the HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>News||Project PokeFan</title>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<div id="header">
<img src="http://www.iaza.com/work/100320C/Header5027428352-iaza.gif" alt=".:Project PokeFan:.">
</div>
<div id="container">
<div id="content">
<h1>News</h1>
<p>Just getting the site ready for publishing. Going well so far, in my opinion! ^^</p>
</div>
<div id="leftmenu">
<iframe src="leftmenu.html"
width="100"
height="270"
frameborder="0"
scrolling="no">
</iframe>
</div>
<div id="rightmenu">
<iframe src="rightmenu.html"
width="150"
height="270"
frameborder="0"
scrolling="no">
</iframe>
</div>
</div>
<div id="footer">
<p>Pokemon © Nintendo 2010</p>
<p>I do not claim ownership of the Pokemon names, logos or any other content belonging to Nintendo found on my site.</p>
</div>
</body>
</html>
Here's the code for the menu:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type"
content="text/html;charset=iso-8859-1" />
<title>menu</title>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<div id="leftmenu">
<ul>
<li>Site
<ul>
<li><a href="C:\Users\Lifebook\Documents\Suz's Stuff\HTML\Project PokeFan\Home.html">Home</a></li>
<li><a href="C:\Users\Lifebook\Documents\Suz's Stuff\HTML\Project PokeFan\News.html">News</a></li>
<li><a href="C:\Users\Lifebook\Documents\Suz's Stuff\HTML\Project PokeFan\Mascots.html">Mascots</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li>
<li>Category
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li>
<li>Category
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li>
</ul>
</div>
</div>
</body>
</html>
Header/Menu HTML
#header {
text-align:center;
height:200px;
background:url (http://ausmall.com.au/freegraf/archive1/ac253.jpg);
}
#header img {
margin:auto;
}
#leftmenu {
position:absolute;
left:0;
top:0;
width:130px;
padding:5px;
text-align:left;
}
#rightmenu {
position:absolute;
right:0;
top:5px;
width:130px;
padding:5px;
text-align:right;
background:none;
}
#leftmenu ul, #rightmenu ul {
list-style-type:none;
margin:0;
padding:0 5px;
}
If anyone can help, I'd really appreciate it! I REALLY want to solve this problem, because once you navigate to a page, the navigation menu disappears.
I've also included screenshots of what happens to the menu.
I hope I'm not a total noob.
Right now I'm working on an HTML website, but I've been having problems. At first the menu displays fine, but when you click on one of the links, a part of the header pops up there and the right menu is moved to that side, in a very messed up way. I'm using Butterfree's Simple Div Layout. I am also using HTML includes to include my menus. Right now, I can't post a link because I am working on the files in my computor and haven't acquired hosting yet.
Things I have tried:
- removed the stylesheet link from the menu file
- added divs of the conatiner and content to the menu file
- placed the menu file include in different places of the HTML document
Here's the code for the HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>News||Project PokeFan</title>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<div id="header">
<img src="http://www.iaza.com/work/100320C/Header5027428352-iaza.gif" alt=".:Project PokeFan:.">
</div>
<div id="container">
<div id="content">
<h1>News</h1>
<p>Just getting the site ready for publishing. Going well so far, in my opinion! ^^</p>
</div>
<div id="leftmenu">
<iframe src="leftmenu.html"
width="100"
height="270"
frameborder="0"
scrolling="no">
</iframe>
</div>
<div id="rightmenu">
<iframe src="rightmenu.html"
width="150"
height="270"
frameborder="0"
scrolling="no">
</iframe>
</div>
</div>
<div id="footer">
<p>Pokemon © Nintendo 2010</p>
<p>I do not claim ownership of the Pokemon names, logos or any other content belonging to Nintendo found on my site.</p>
</div>
</body>
</html>
Here's the code for the menu:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type"
content="text/html;charset=iso-8859-1" />
<title>menu</title>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<div id="leftmenu">
<ul>
<li>Site
<ul>
<li><a href="C:\Users\Lifebook\Documents\Suz's Stuff\HTML\Project PokeFan\Home.html">Home</a></li>
<li><a href="C:\Users\Lifebook\Documents\Suz's Stuff\HTML\Project PokeFan\News.html">News</a></li>
<li><a href="C:\Users\Lifebook\Documents\Suz's Stuff\HTML\Project PokeFan\Mascots.html">Mascots</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li>
<li>Category
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li>
<li>Category
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li>
</ul>
</div>
</div>
</body>
</html>
Header/Menu HTML
#header {
text-align:center;
height:200px;
background:url (http://ausmall.com.au/freegraf/archive1/ac253.jpg);
}
#header img {
margin:auto;
}
#leftmenu {
position:absolute;
left:0;
top:0;
width:130px;
padding:5px;
text-align:left;
}
#rightmenu {
position:absolute;
right:0;
top:5px;
width:130px;
padding:5px;
text-align:right;
background:none;
}
#leftmenu ul, #rightmenu ul {
list-style-type:none;
margin:0;
padding:0 5px;
}
If anyone can help, I'd really appreciate it! I REALLY want to solve this problem, because once you navigate to a page, the navigation menu disappears.
I've also included screenshots of what happens to the menu.
I hope I'm not a total noob.
Attachments
Last edited: