Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Absolutle Positioned Navigation bar in a Float Layout

Posted on 2009-04-07
3
Medium Priority
?
275 Views
Last Modified: 2012-05-06
I am trying to get navigation bar to be absolute positioned.  However, when I resize the browser the navbar moves. How do I keep it in place?  See Link

http://rccwebproject.net/students/Metamora/index.html
html, body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  border: 0;
}
body { background-color: rgb(250,250,250)};
 
 
 
h1 {
font-family: Trebuchet MS;
font-size: 24px;
font-weight: normal;
color: rgb(47, 79, 79);
}
 
#main {
  width: 800px;
  max-width: 1000px;
  height: 600px;
  background-color:#fff;
  margin: 2em auto;
  padding: 1em;
}
 
#logo {
height:251px;
margin-top: 50px;
margin-left:auto;
margin-right:auto;
text-align:center;
width:800px;
}
 
#buttons {
	position: absolute;
	top: 184px;
	right: 182px;
	width: 349px;
}
 
 
#footer {
font-size: 70%;
text-align: center;
line-height: normal;
margin-top: 30px;
}

Open in new window

0
Comment
Question by:Albee_J
[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
3 Comments
 
LVL 13

Expert Comment

by:myderrick
ID: 24093058
On the link provided the #button is positioned relative with top of -180px.

Please check and provide feedback

MD
0
 

Accepted Solution

by:
Albee_J earned 0 total points
ID: 24095935
I got it to work by futzing around with it.  I changed it from absolute to relative.
0
 

Author Comment

by:Albee_J
ID: 24095949
I posted to quickly in here. Sorry...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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!
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

670 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