Solved

What am  doing wrong here?

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Placeholder text not disappearing in Contact Form 7 2 28
Problem to refer to value 8 82
Responsive Font Size 6 48
CSS for <center> 14 35
Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
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 learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

726 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