Solved

What am  doing wrong here?

Posted on 2013-06-24
2
263 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS Question 5 81
Why is this panel heading creating extra space 2 49
manage footer size 4 51
Border and image sizing 5 19
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 …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

776 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