Expand|Select|Wrap|Line Numbers
- div.main
- {
- width: 100%;
- height: 100%;
- border: 1px solid gray;
- }
Expand|Select|Wrap|Line Numbers
- div.banner
- {
- border-right: 1px solid gray;
- float: left;
- }
<img src="Location" width="200" height="650" />
</div>[/HTML]
on the right I have the sponsers banner.
Expand|Select|Wrap|Line Numbers
- div.sponser
- {
- border-left: 1px solid gray;
- float: right;
- margin: 0;
- }
<img src="Location" width="200" height="650" />
</div>[/HTML]
Inbetween the banner and the sponsers, I have a navagation bar.
Expand|Select|Wrap|Line Numbers
- ul.list1
- {
- float: left;
- margin: 0;
- list-style-type: none;
- }
- a.nav
- {
- float: left;
- text-decoration: none;
- color: #000000;
- background-color: #e00000;
- padding: 0.2em 0.6em;
- border-right: 1px solid #000000;
- font-size: 20px;
- }
- a.nav:hover
- {
- color: #e00000;
- background-color: #000000;
- }
- li.navin
- {
- display: inline;
- }
<li class="navin"><a class="nav" href="Home.html">Home</a></li>
<li class="navin"><a class="nav" href="Storys.html">Storys</a></li>
<li class="navin"><a class="nav" href="Blogs.html">Blogs</a></li>
<li class="navin"><a class="nav" href="Music.html">Music</a></li>
<li class="navin"><a class="nav" href="Videos.html">Video</a></li>
<li class="navin"><a class="nav" href="About.html">About</a></li>
</ul>[/HTML]
Then under the navagation bar I have the pages contents.
Expand|Select|Wrap|Line Numbers
- div.contents
- {
- color: #e00000;
- font-size: 17px;
- padding: 5em;
- border-top: 1px solid gray;
- border-bottom: 1px solid gray;
- float: left;
- }
<!-- 19 line breaks to extend the page -->
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</div>[/HTML]
And below the contents I have the footer.
Expand|Select|Wrap|Line Numbers
- ul.list2
- {
- padding: 0;
- margin: 0;
- list-style-type: none;
- }
- a.footer
- {
- color: #e00000;
- }
- a.footer:hover
- {
- color: #000000;
- background-color: #e00000;
- }
- li.footerin1
- {
- display: inline;
- }
- li.footerin2
- {
- display: inline;
- }
- div.footer1
- {
- margin-left: 395px;
- }
- div.footer2
- {
- margin-left: 425px;
- }
<ul class="list2">
<li class="footerin1"><a class="footer" href="Home.html"><Home</a></li>
<li class="footerin1"><a class="footer" href="Storys.html">Storys</a></li>
<li class="footerin1"><a class="footer" href="Blogs.html">Blogs</a></li>
<li class="footerin1"><a class="footer" href="Music.html">Music</a></li>
<li class="footerin1"><a class="footer" href="Videos.html">Videos</a></li>
<li class="footerin1"><a class="footer" href="About.html">About</a></li>
</div>
<div class="footer2">
<li class="footerin2"><a class="footer" href="Help.html">Help</a></li>
<li class="footerin2"><a class="footer" href="Suggestions.html">Suggestions</a></li>
<li class="footerin2"><a class="footer" href="Support.html">Support</a></li>
</ul>
</div>[/HTML]
Here are my problems.
My footer is literally right below my div.contents bottom border, and I can can't get it to go down.
I want the banner and sponsers to be eqaul with the rest of the divisions, but when I stretch the image, it make the div.main longer, and it puts space between the images borders and the div.main bottom border.
And my div.contents, top and bottom borders don't go all the way right into the sponsers, they stop about a cenimeter short.
Here's the entire code I did it the way I did above so it would be easier to read.
[HTML]<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Home Page</title>
<style type="text/css">
body
{
background-color: black;
}
div.main
{
width: 100%;
height: 100%;
border: 1px solid gray;
}
ul.list1
{
float: left;
margin: 0;
list-style-type: none;
}
ul.list2
{
padding: 0;
margin: 0;
list-style-type: none;
}
a.nav
{
float: left;
text-decoration: none;
color: #000000;
background-color: #e00000;
padding: 0.2em 0.6em;
border-right: 1px solid #000000;
font-size: 20px;
}
a.nav:hover
{
color: #e00000;
background-color: #000000;
}
a.footer
{
color: #e00000;
}
a.footer:hover
{
color: #000000;
background-color: #e00000;
}
li.navin
{
display: inline;
}
li.footerin1
{
display: inline;
}
li.footerin2
{
display: inline;
}
div.contents
{
color: #e00000;
font-size: 17px;
padding: 5em;
border-top: 1px solid gray;
border-bottom: 1px solid gray;
float: left;
}
div.footer1
{
margin-left: 395px;
}
div.footer2
{
margin-left: 425px;
}
div.banner
{
border-right: 1px solid gray;
float: left;
}
div.sponser
{
border-left: 1px solid gray;
float: right;
margin: 0;
}
</style>
</head>
<body>
<div class="main">
<div class="banner">
<img src="Location" width="200" height="650" />
</div>
<ul class="list1">
<li class="navin"><a class="nav" href="Home.html">Home</a></li>
<li class="navin"><a class="nav" href="Storys.html">Storys</a></li>
<li class="navin"><a class="nav" href="Blogs.html">Blogs</a></li>
<li class="navin"><a class="nav" href="Music.html">Music</a></li>
<li class="navin"><a class="nav" href="Videos">Video</a></li>
<li class="navin"><a class="nav" href="About.html">About</a></li>
</ul>
<div class="sponser">
<img src="Location" width="200" height="650" />
</div>
<div class="contents">
<!-- 19 line breaks to extend the page -->
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
</div>
<div class="footer1">
<ul class="list2">
<li class="footerin1"><a class="footer" href="Home.html"><Home</a></li>
<li class="footerin1"><a class="footer" href="Storys.html">Storys</a></li>
<li class="footerin1"><a class="footer" href="Blogs.html">Blogs</a></li>
<li class="footerin1"><a class="footer" href="Music.html">Music</a></li>
<li class="footerin1"><a class="footer" href="Videos.html">Videos</a></li>
<li class="footerin1"><a class="footer" href="About.html">About</a></li>
</div>
<div class="footer2">
<li class="footerin2"><a class="footer" href="Help.html">Help</a></li>
<li class="footerin2"><a class="footer" href="Suggestions.html">Suggestions</a></li>
<li class="footerin2"><a class="footer" href="Support.html">Support</a></li>
</ul>
</div>
</div>
</body>
</html>[/HTML]
Thanks, Death
PS - If there are better ways to do what i'm doing please let me know.