User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 456,583 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,636 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 955 | Replies: 2
Reply
Join Date: Jun 2007
Posts: 50
Reputation: Prozeen is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 4
Prozeen's Avatar
Prozeen Prozeen is offline Offline
Junior Poster in Training

CSS position problem

  #1  
Nov 3rd, 2007
I'm a newbie to css and I've hit the wall

I would like the user of the web page/site to scroll down the page and still have the navigation bar shown at all times. I've managed to do this, however, the text scrolls over the top of the navigation bar. I would like the navigation bar to hide the text as the user scrolls.

I've tried playing around with the position values (e.g. relative/absolute) but nothing seems to work. Any ideas out there? Thanks
Attached Files
File Type: zip Web Page.zip (2.9 KB, 4 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Rep Power: 4
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: CSS position problem

  #2  
Nov 7th, 2007
Okay...

Have you tried using z-index: nnn;
(nnn being some numeric value).

It would also help if the Navigation was not "in the document flow"... meaning it should be seperate to everything else, jsut in case certain browsers don't want to play properly.
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote  
Join Date: Sep 2007
Location: North Bay Ontario
Posts: 176
Reputation: trudge is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 20
trudge trudge is offline Offline
Junior Poster

Re: CSS position problem

  #3  
Nov 13th, 2007
Originally Posted by autocrat View Post
Okay...

Have you tried using z-index: nnn;
(nnn being some numeric value).

It would also help if the Navigation was not "in the document flow"... meaning it should be seperate to everything else, jsut in case certain browsers don't want to play properly.


I'm going to make a guess that you are testing with a version of IE < 7, and are trying to use 'position:fixed'?

IE does not understand 'position:fixed', as you will discover if you do a search for 'IE position fixed'. FF understands it and complies, but good old IE does not. Many work-arounds include the advice given above, to get the 'fixed' div out of the main content flow. It is possible to make it work.

Trying to get a site looking good in both browsers, and at 800x600 AND 1024x768 will drive you nuts.
Amer Neely - Web Mechanic
"Others make web sites. We make web sites work!"
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 6:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC