Expression > Форумы > Expression Web and SuperPreview > Can someone tell me why my Contacts page jumps a few pixels to the right?
Задайте вопросЗадайте вопрос
 

ОтвеченоCan someone tell me why my Contacts page jumps a few pixels to the right?

Ответы

  • 2 июля 2009 г. 16:11Bill Pearson Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    It only jumps if the footer isn't displayed on the screen. On my monitor (20"), it doesn't jump if I have the viewport maximized (the footer is displayed on all pages). But if I shrink the height so that the viewport is 990px, all of the regular pages except Links (the tallest page) hop to the right by about 8px.

    I see a couple of problems in your CSS. You are mixing size specification between px and %. When you have things like 1% padding, that's asking for problems, because the math doesn't always calculate to an even number, which can cause hopping. Get rid of all % settings for margins and use a fixed px width.

    Also, you have on #environment a margin set to 3.5px auto. A monitor can't align to part of a pixel. Use whole numbers only.

    Also, also, Calibri is a font available only in Vista and Office 2007. Nobody else has that font loaded on their computer, and you haven't given a font family to fall back on. You don't know what they'll be seeing if they have Win XP, Mac, etc.

    Edit: I was looking at the CSS for problems and didn't notice nor think about the scroll bar issue, which is so very ubiquitous. Forest for the trees, and all, right? Thanks Ian for pointing out the forest.
    • Помечено в качестве ответаrboutin1 2 июля 2009 г. 16:24
    • ИзмененоBill Pearson 2 июля 2009 г. 17:35
    •  

Все ответы