?
Solved

What am  doing wrong here?

Posted on 2013-06-24
2
Medium Priority
?
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
OmniUnlimited earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 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