944,135 Members | Top Members by Rank

Ad:
May 8th, 2006
0

Bottom of Firefox/IE

Expand Post »
Hia,

I'm frustrated with trying to get a navigation console to sit on the bottom center of page. I'm trying to avoid ever having x or y scroll bars on my site. I can get it to work sweetly on IE using

HTML and CSS Syntax (Toggle Plain Text)
  1. #nav {
  2. position:absolute;
  3. bottom: 0px;
  4. z-index: 4;
  5. left: 50%;
  6. margin-left:-287px;
  7. height: 110px;
  8. width: 100px;
  9. }

but that makes the images on nav console go under the bottom of browser viewport on Firefox by about 10px and enables scrolling across.

I can get it to work perfectly on Firefox by simply changing to

HTML and CSS Syntax (Toggle Plain Text)
  1. #nav {
  2. position:fixed;
  3. ...
  4. }

but that isn't recognised by IE and my console ends up top left of screen. I could complain about IE but I'd rather just get it right for both browers.

The site this is being used on is

www.readingbus.co.uk

any ideas?

russell
Last edited by tgreer; May 8th, 2006 at 10:43 pm. Reason: Added CODE tags. Please use CODE tags!! Removed profanity.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Anax is offline Offline
24 posts
since Mar 2006
May 8th, 2006
0

Re: Bottom of Firefox/IE

Please use code tags.

The CSS position attributes depend on how the elements are nested, and how the parent elements are nested, and so on up the chain.

Your page is a bit of a muddle, because you're mixing both DIV elements and TABLES, and the container hierarchy isn't very clear.

The first step is to clean up your page source. If you're going to use DIVs, then use them throughout, consistently. If you're going to use tables, then organize the entire page as a table.

When you mix-and-match, each browser will do it's best to figure out what "contains" what, and then how to apply your CSS.

You also have an incomplete DOCTYPE.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
May 8th, 2006
0

Re: Bottom of Firefox/IE

Much appreciated mr greer,

and I see. This, my first site, shows the steep learning curve I underwent, learning the tec stuff having been a Creative. And in the dark months ago I started by cheating using the Dreamweaver Nav Bar set-up which sets up a table. I now try to avoid tables.

The only reason I haven't gone through site changing the nav bar to a css-based horizontal list is my inability to achieve a similar image-rollover effect. I can get one using pseudo classes A:link etc with different background images - but I can only get the changing background to wrap around the single line of the link text. Do you think I can achieve a similar effect as on my current page using css.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Anax is offline Offline
24 posts
since Mar 2006
May 8th, 2006
0

Re: Bottom of Firefox/IE

Yes. And if not, then we add a bit of JavaScript.

But before all of that, get the page down to a few nice DIV elements.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
May 9th, 2006
0

Re: Bottom of Firefox/IE

OK it's a deal - I'm off to bed as it's 4am Scottish Highlands time, but tomorrow I'll give it a go...

thanks for giving me the inspiring kick up the **** I needed
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Anax is offline Offline
24 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: IE issue with floats
Next Thread in HTML and CSS Forum Timeline: Rounded corners via css: Fine in IE, broken in Firefox





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC