PDA

View Full Version : And yet another "movement between pages" thread!


Andromeda
05-26-2007, 04:05 AM
I have two pages.
http://www.wtl.org.nz/demo1.html
http://www.wtl.org.nz/demo2.html

You can click between the pages using the link just below the red heading.

These pages are EXACTLY the same except that for demo 2 I have taken away some <p>s and a <h2> from the bottom of the page as shown below.

<p> We don't have one particular place where we buy our toys. We buy our toys from a wide range of shops and online stores.</p>
<h2>Do you have books, videos, DVDs and exersaucers?</h2>
<p> We do not have books, videos and dvds but we do have exersaucers.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

This is the ONLY change I have made to demo 2 and yet, when viewed in Firefox the positioning of the pages varies from each other by about 4 pixels. Note - it all looks fine in IE. It's Firefox that has the problem.

Any ideas anyone????

Andromeda
05-26-2007, 04:41 AM
OK. I have figured out the problem...... actually I should say my son figured out the problem.

When a page is short enough not to need vertical scroll bars in IE, then the scroll bar remains but is greyed out. In firefox the vertical scroll bar disappears entirely, changing the width of the page and upsetting any alignments and positionings that depend on it.

So with this new information, how do I get round this so that the positioning is not dependant on whether there is a scroll bar or not.

Andromeda
05-26-2007, 05:37 AM
I was so excited about discovering why the shift was occuring that I didn't search for an answer to my second question and just posted it here instead.

But now I have searched and found the answer here:
http://www.dreamweaverclub.com/forum...+bar+firefo x (http://www.dreamweaverclub.com/forum/showthread.php?t=23357&highlight=scroll+bar+firefox)

Simply use this code in css
html { height: 100%; margin-bottom: 1px; }

The thing I can't figure out is WHY this works - what does it actually do???

Andromeda
05-26-2007, 05:41 AM
LOL! I feel like I'm having a conversation with myself - but then again - that's actually not that unusual!!

domedia
05-27-2007, 03:32 PM
This thread might be very helpful for others, I'm sure they'll appreciate you taking the time to explain it here:)