473,383 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 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 2488
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 has "the main body" and "a navigation menu"? It...
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 patches applied. I use Mozilla 1.6 for all testing...
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 Firefox), but on PC IE, nada. ...
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 newby at CSS, and I've think I've worked on trying...
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 layout. Before I added the navigation background...
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 solid styling advice for me. I've now been dealing...
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 OK (ie links will wrap). Padding OK. Same width...
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 I've ever written CSS...although I had PLENTY of...
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. I was wondering if I can use the same code but...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.