Reply
CSS design problem...navigation bar shifts
Old 04-21-2008, 03:24 PM CSS design problem...navigation bar shifts
Junior Talker

Posts: 1
Ok, I'm just learned CSS and html this semester and I'm building my final class project on MC Escher. I'm using an external css file and I have a "wrapper" for all pages in order to center them. The problem I have is (1) that the navigation bar shifts around (12px or 1em) from the top and (2) the wrapper doesn't cover the whole page content (i.e. the bottom navigation links seem to just hover around near the bottom, but not at the correct location).

- Only home, book review, feedback, and works cited pages work
- home and works cited page has the navigation bar 1em/12px from the top
- book review and feedback page has the navigation bar has 0 margin from the top

I don't seem to have any problems when viewing with IE, only in Firefox. I tried having a separate class that would reduce the top margins for the home and works cited page to -1em or -12px but that didn't work.

I don't understand why the margins shift for certain pages or why the "wrapper" doesn't cover the entire content.

Help is greatly appreciated. Thanks in advance.

site links:
-home page: http://escherdraft.runhost.net/home.htm

-book review: http://escherdraft.runhost.net/bookreview.htm

-feedback (*submit button doesn't work yet): http://escherdraft.runhost.net/feedback.htm

- works cited: http://escherdraft.runhost.net/workscited.htm

- css link: http://escherdraft.runhost.net/global.css

-js link: http://escherdraft.runhost.net/global.js
escherdraft is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-21-2008, 05:35 PM Re: CSS design problem...navigation bar shifts
LadynRed's Avatar
Super Moderator

Posts: 6,072
Location: Tennessee
#1 - validate your code. you've got a batch of errors there, mostly due to the incorrect width and height on your images. You do NOT use "px" on the dimensions on an <img> tag.

Your #wrapper doesn't 'wrap' around the content because you're using position:absolute and position:relative for just about everything rather than properly using the document flow. Also, if you use floats, you must CLEAR your floats in order for the #wrapper to 'wrap' properly.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS design problem...navigation bar shifts
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11640 seconds with 13 queries