Weird position movements between similar pages

D

dfloss

http://tinyurl.com/2a5tjn

If you scroll through the various linked pages, the nav arrows and/or
column border are in a different position by around two pixels on
various pages. They all use the same code for the top, left and bottom
div's, with the exception of the column border (which may be attached to
the left or right column).

Results in various browsers:
* IE6 & Opera: arrows never move, column borders move
* Firefox: arrows and column border move

Any thoughts?
 
J

Jonathan N. Little

dfloss said:
http://tinyurl.com/2a5tjn

If you scroll through the various linked pages, the nav arrows and/or
column border are in a different position by around two pixels on
various pages. They all use the same code for the top, left and bottom
div's, with the exception of the column border (which may be attached to
the left or right column).

Results in various browsers:
* IE6 & Opera: arrows never move, column borders move
* Firefox: arrows and column border move

Because you are using a table for layout, a table by default tries to
expand to accommodate the content, and since the content changes from
page to page the table adjusts. Use DIVs and you can stop the shift.
 
D

dfloss

Jonathan said:
Because you are using a table for layout, a table by default tries to
expand to accommodate the content, and since the content changes from
page to page the table adjusts. Use DIVs and you can stop the shift.

After digging in, I located the problems. They weren't related to
tables, all of which are inside containing <div>'s.

The column border problem was pixel error {margin: __px}. The
horizontal position was off by one pixel when the border was attached to
the right column.

Arrow movements are still a bit obscure, but look like a Firefox bug.
The arrows (which are absolutely positioned) move left slightly when
Firefox has a vertical scroll bar. They don't move in other browsers.
 
J

Jonathan N. Little

dfloss said:
After digging in, I located the problems. They weren't related to
tables, all of which are inside containing <div>'s.

The column border problem was pixel error {margin: __px}. The
horizontal position was off by one pixel when the border was attached to
the right column.

Arrow movements are still a bit obscure, but look like a Firefox bug.
The arrows (which are absolutely positioned) move left slightly when
Firefox has a vertical scroll bar. They don't move in other browsers.

pixel spacing and tables are not helping your design.
 
D

dfloss

pixel spacing and tables are not helping your design.

That may be true, but tables allow the viewer to change the browser font
size and everything is still aligned properly.

Incidentally, the arrow position bug is now fixed. "margin: ... auto"
in the main container css was the culprit.
 
J

Jonathan N. Little

dfloss said:
That may be true, but tables allow the viewer to change the browser font
size and everything is still aligned properly.

That has not nothing to do with tables. If you don't size your block
element in px's but in em's any block element will scale with your
font-size.
Incidentally, the arrow position bug is now fixed. "margin: ... auto"
in the main container css was the culprit.

Of course, as the content dimensions changed from page to page to
calculate even margins on changing widths the values would be different!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top