Solved

Absolutle Positioned Navigation bar in a Float Layout

Posted on 2009-04-07
3
267 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help in good tutorials for PHP, HTML and CSS 6 69
html / css issue / div issue. stuck, help needed 2 41
CSS Style 8 52
Change static entered data to dynamic with counter 5 52
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
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…
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

752 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