Sorry for the weird title, I don't know what else to call it. So here is my question. I am making a new site from scratch, and I'm am not very fluent in HTML, but I made a main div, and a top menu div, and when I tested it, it was fine. Then I added a side bar to it, and when I tested it, the menu was all the way on the left, so when I tried to fix it, the main div was sent out to the middle of the page along with the menu, away from the sidebar. Here is my css code:
body
{
font: "Trebuchet MS", Verdana, sans-serif;
background-image:url("http://www.wallchan.com/images/mediums/2000.jpg");
color: #696969;
}
#main
{
position: absolute;
left:105px;
padding: 30px;
background-color: #ADFF2F;
border-radius: 4px 4px 4px 4px;
}
h1
{
font: Georgia, serif;
border-bottom: 3px solid #cc9900;
color: #996600;
}
#sidebar
{
position:absolute;
left:0; top:92px; bottom: 0;
width: 90px;
padding: 10px;
background-color: #48D1CC;
border-radius: 10px 10px 10px 10px;
}
#menu
{
padding: 0px;
position: relative;
margin: 0;
}
#menu li
{
display: inline;
}
#menu li a
{
background-color: #87CEFA;
padding: 10px 20px;
text-decoration: none;
line-height: 2.8em;
color: #034af3;
border-radius: 4px 4px 0 0;
}
#menu li a:hover
{
background-color: #7CFC00;
}
Here is my main HTML code:
<!DOCTYPE html>
<html>
<head>
<title>PHP Demo</title>
<link href="site.css" rel="stylesheet">
</head>
<body>
<div id="sidebar">
<p>Test</p>
</div>
<div id="menu">
<?php include("header.php"); ?>
<div id="main">
<h1>Welcome to the Pantheon Inc. website! </h1>
<h2>We strive to make your life easier!</h2>
<?php include("footer.php"); ?>
</div>
</body>
</html>
and here is my header code:
<ul id="menu">
<li><a href="index.php">Home</a></li>
<li><a href="projects.php">Projects</a></li>
<li><a href="about.php">About</a></li>
</ul>
P.S. Also, I would like to know if there is any way to turn my menu into a drop down menu? like when you hover over it, there might be a little jquery animation making it drop down its sub-components. Thanks!