472,325 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,325 software developers and data experts.

how to force navigation column to be same color to the bottom?

I want the <div id="navigation"column to be the same color all the way to
the bottom. The "background-image: url(bg_menu_tile.gif);" was a try to
force it with a long 1-pixel graphic - didn't work. Any ideas?
Here's the HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="top">
<p><img src="logo.gif"></p>
</div>
<div id="values">
<div id="values1"><img src="value1.gif"></div>
<div id="values2"><img src="value2.gif"></div>
<div id="values3"><img src="value3.gif"></div>
<div id="values4"><img src="value4.gif"></div>
</div>
<div id="content">
<h3>Here to help</h3>
</div>
<div id="navigation">
<ul id="mainnav">
<li><a href="#">menu1</a></li>
<li><a href="#">menu2</a></li>
<li><a href="#">menu3</a></li>
<li><a href="#">menu4</a></li>
</ul>
</div>
<div id="footer">Copyright &copy; 2006</div>
</div>
</body>
</html>

here's the css:
/* CSS Document */
body {
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #FFFFFF;
text-align: center;
}
#wrapper {
text-align: left;
width: 800px;
margin-right: auto;
margin-left: auto;
margin-top: 10px;
padding: 20px 0 0 0;
background-image: url(top.gif);
background-repeat: repeat-x;
background-position: left top;
border-top: 2px solid #722100;
border-left: 2px solid #722100;
border-right: 2px solid #722100;
border-bottom: 2px solid #722100;
}
#top {
height: 4em;
padding: 5px 0px 0px 5px;
}
#values {
border-top: 1px solid #778899;
border-bottom: 1px solid #FFF;
height: 5em;
}
#values1, #values2, #values3, #values4 {
float: left;
color: #FFFFFF;
padding: 5px;
height: 5em;
width: 189px;
margin-right: 1px;
}
#values1 {
background-color: #FFFFCC;\
}
#values2 {
background-color: #FFFFCC;
}
#values3 {
background-color: #FFFFCC;
}
#values4 {
background-color: #FFFFCC;
width: 190px;
margin-right: 0;
}
#content {
background-color: #FFFFFF;
width: 580px;
float: right;
padding: 0px 10px 0 0;
font-size: 12px
}
#content h3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #B54B27;
}
#navigation {
float: left;
width: 180px;
background-image: url(bg_menu_tile.gif);
}
#navigation ul {
list-style: none;
margin: 0;
padding: 0;
border: none;
}
#navigation li {
width: 180px;
border-bottom: 1px solid #ED9F9F;
margin: 0;
padding: 0;
font-size: 80%;
vertical-align: bottom;
}
#navigation a:link, #navigation a:visited {
display: block;
padding: 5px 5px 5px 0.5em;
border-left: 1px solid #722100;
border-right: 1px solid #722100;
/* background-color: #D3D2B6;*/
color: #000000;
text-decoration: none;
}
#navigation a:hover {
background-color: #B54B27;
color: #FFFFFF;
}
#navigation ul.subnav {
margin-left: 12px;
}
#navigation ul.subnav li {
border-bottom: 1px solid #722100;
width: 168px;
}
#navigation .subnav a:link, #navigation ul.subnav a:visited {
background-color: #661200;
color: #722100;
}
#footer {
clear: both;
padding: 10px 0 10px 255px;
font-size: 70%;
color: #AAAAAA;
background-color: transparent;
}
Sep 30 '06 #1
3 2409
On 2006-09-30, Paul <no*********@nowhere.invalidwrote:
I want the <div id="navigation"column to be the same color all the way to
the bottom.
It is isn't it? On Firefox if I set #navigation to background-color:
green, I get green all the way to #footer. Obviously you can give
#footer a background-color too if you want.
The "background-image: url(bg_menu_tile.gif);" was a try to force it
with a long 1-pixel graphic - didn't work.
That shouldn't be necessary, background-color should work just as well.
Any ideas?
Don't understand the problem I'm afraid, you have to explain it in more
detail.
Here's the HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="top">
<p><img src="logo.gif"></p>
</div>
<div id="values">
<div id="values1"><img src="value1.gif"></div>
<div id="values2"><img src="value2.gif"></div>
<div id="values3"><img src="value3.gif"></div>
<div id="values4"><img src="value4.gif"></div>
</div>
<div id="content">
<h3>Here to help</h3>
</div>
<div id="navigation">
<ul id="mainnav">
<li><a href="#">menu1</a></li>
<li><a href="#">menu2</a></li>
<li><a href="#">menu3</a></li>
<li><a href="#">menu4</a></li>
</ul>
</div>
<div id="footer">Copyright &copy; 2006</div>
</div>
</body>
</html>

here's the css:
/* CSS Document */
body {
margin: 0;
padding: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #FFFFFF;
text-align: center;
}
#wrapper {
text-align: left;
width: 800px;
margin-right: auto;
margin-left: auto;
margin-top: 10px;
padding: 20px 0 0 0;
background-image: url(top.gif);
background-repeat: repeat-x;
background-position: left top;
border-top: 2px solid #722100;
border-left: 2px solid #722100;
border-right: 2px solid #722100;
border-bottom: 2px solid #722100;
}
#top {
height: 4em;
padding: 5px 0px 0px 5px;
}
#values {
border-top: 1px solid #778899;
border-bottom: 1px solid #FFF;
height: 5em;
}
#values1, #values2, #values3, #values4 {
float: left;
color: #FFFFFF;
padding: 5px;
height: 5em;
width: 189px;
margin-right: 1px;
}
#values1 {
background-color: #FFFFCC;\
}
#values2 {
background-color: #FFFFCC;
}
#values3 {
background-color: #FFFFCC;
}
#values4 {
background-color: #FFFFCC;
width: 190px;
margin-right: 0;
}
#content {
background-color: #FFFFFF;
width: 580px;
float: right;
padding: 0px 10px 0 0;
font-size: 12px
}
#content h3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #B54B27;
}
#navigation {
float: left;
width: 180px;
background-image: url(bg_menu_tile.gif);
}
#navigation ul {
list-style: none;
margin: 0;
padding: 0;
border: none;
}
#navigation li {
width: 180px;
border-bottom: 1px solid #ED9F9F;
margin: 0;
padding: 0;
font-size: 80%;
vertical-align: bottom;
}
#navigation a:link, #navigation a:visited {
display: block;
padding: 5px 5px 5px 0.5em;
border-left: 1px solid #722100;
border-right: 1px solid #722100;
/* background-color: #D3D2B6;*/
color: #000000;
text-decoration: none;
}
#navigation a:hover {
background-color: #B54B27;
color: #FFFFFF;
}
#navigation ul.subnav {
margin-left: 12px;
}
#navigation ul.subnav li {
border-bottom: 1px solid #722100;
width: 168px;
}
#navigation .subnav a:link, #navigation ul.subnav a:visited {
background-color: #661200;
color: #722100;
}
#footer {
clear: both;
padding: 10px 0 10px 255px;
font-size: 70%;
color: #AAAAAA;
background-color: transparent;
}

Oct 1 '06 #2
"Ben C" <sp******@spam.eggswrote in message
news:sl*********************@bowser.marioworld...
On 2006-09-30, Paul <no*********@nowhere.invalidwrote:
>I want the <div id="navigation"column to be the same color all the way
to
the bottom.

It is isn't it? On Firefox if I set #navigation to background-color:
green, I get green all the way to #footer. Obviously you can give
#footer a background-color too if you want.
I added background-color:green; to :
#navigation {
float: left;
width: 199px;
background-color:green;
}
and it does not show up in my either firefox or ie browsers. Is that what
you changed?
Oct 1 '06 #3
On 2006-10-01, Paul <no*********@nowhere.invalidwrote:
"Ben C" <sp******@spam.eggswrote in message
news:sl*********************@bowser.marioworld...
>On 2006-09-30, Paul <no*********@nowhere.invalidwrote:
>>I want the <div id="navigation"column to be the same color all the way
to
the bottom.

It is isn't it? On Firefox if I set #navigation to background-color:
green, I get green all the way to #footer. Obviously you can give
#footer a background-color too if you want.

I added background-color:green; to :
#navigation {
float: left;
width: 199px;
background-color:green;
}
and it does not show up in my either firefox or ie browsers. Is that what
you changed?
Yes, and I tried it on Firefox too.

I must have misunderstood what you're talking about. Post a link to the
actual page and to a screenshot of what you're seeing.
Oct 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave Patton | last post by:
Using my About page as an example: http://members.shaw.ca/davepatton/about.html What is the best/proper way to markup a page such as this that...
9
by: Theodore A. Jencks | last post by:
Hi All, I have a problem that is two fold. First a little about the enviroment I'm using; I am running Microsoft Windows XP with all security...
28
by: laredotornado | last post by:
Hi, Surprisingly, I can't get the drop down menus to work on PC IE 6. If you roll over "PRODUCTS", normally a drop down menu appears (on Safari and...
3
by: Jannette | last post by:
I've got this to finally work in IE (its only taken me 2 days solid), but now mozilla isn't displaying the text on the same line as the image. I'm a...
8
by: paul.denlinger | last post by:
Hi-- Things have gone well for me on this page design, but when I added a background image, it pushed everything down and messed up my page...
4
by: tburger | last post by:
Hey everyone- This is my first post at The Scripts, but I've used the forums before for other programming issues. Hopefully, someone has some...
7
by: Jeff | last post by:
What's the current wisdom on styling lists for navigation. What I'd like is for: links and background colors to be 100% of the width. multi-line...
0
by: tom59593 | last post by:
Hi there. I have been attempting (for a few days on end, sadly) to get a navigation section of my new site to work. Granted, this is the first time...
3
by: smokymtnman | last post by:
I have a drop down menu that has grown so long that I am afraid it will be hidden at the bottom of the page. I am using a ssi file for navigation....
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.