Solved

What am  doing wrong here?

Posted on 2013-06-24
2
257 Views
Last Modified: 2013-06-24
Head out to http://hihatwebdesign.com/Trinity/header.php.

The code thus far should be cake and ice cream, but I'm blowing it somewhere and I can't figure out what I'm doing wrong.

Bottom line: I want a nav bar to be positioned immediately beneath the footer and then I have a "body_block" container immediately below it. Thing is, I couldn't get them to display correctly, so I reverted back to using background colors just so I could see where my containers were supposedly positioned and now I can't even see those.

It's late, maybe I'm forgetting something unbelievably simple, but I'm hoping the experts can show me what I'm doing wrong.

Why won't my containers show up the way that I have them described above. One immediately below the other?

Here's my html:

<div id="body_tray">
	<div id="header"><IMG SRC="images/header.png" usemap="#header" border="0"></div>
	<div id="#nav_bar"></div>
	<div id="#body_block"></div>
</div>

Open in new window


...and here's my stylesheet...

body {
	font-family: Helvetica, Microsoft Sans Serif;
	font-size: 14px;
	color: #000000;
	vertical-align: top;
	padding: 0px;
	height: 100%;
	width: 100%;
	margin: 0;
	background-color:#202740;
}

#body_tray {
position:relative;
width:997px;
height:800px;
margin:auto;
padding:25px;
}

#header {
position:relative;
margin:auto;
height:236px;
width:997px;
}

#nav_bar {
position:relative;
margin:auto;
width:997px;
height:38px;
background-color:#cccccc;
}

#body_block {
position:relative;
width:997px;
height:505px;
background-color:#ffffff;
}

Open in new window


What am I doing wrong?
0
Comment
Question by:brucegust
2 Comments
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 500 total points
ID: 39273538
Well, for one thing, you have pound signs ("#") in the id's of your HTML.  They should read <div id="nav_bar">, not <div id="#nav_bar">.
0
 

Author Comment

by:brucegust
ID: 39273551
Well, that would do it, wouldn't it?

Thanks!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now