Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Adding image links bumps down all links

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #201513
    ErikAGriffin
    Participant

    I have this sticky footer formatted how I would like it, however upon adding a link that is an image, it messes up. All of the links in the footer bump down, add a scrollbar to the page and cause the page to extend beyond the footer. If you remove that link, you will see it working as intended. What is happening here?

    http://codepen.io/ErikAGriffin/pen/xGGyRx?editors=110

    #201514
    Paulie_D
    Member

    It looks to me as though you have the scrollbar regardless….look what happens if you comment out the links.

    http://codepen.io/Paulie-D/pen/OVVBjO

    #201515
    Paulie_D
    Member

    Then again, I think it’s the top padding on the footer combined with the height.

    If you make the height 42px and remove the padding it seems to work.

    http://codepen.io/Paulie-D/pen/QbbZaV

    #201527
    ErikAGriffin
    Participant

    @Paulie_D Your first codepen doesn’t just comment out the links, it changed the height in footer, main:after to 42 (from 32). The original had a height of 32 and padding of 10px, and does not have a scrollbar if you comment out the image link.

    The goal is to have the normal links centered vertically in the footer, and also have that image link there. Your last example without the padding has no scrollbar (as my first example does if you comment out the image link only), but the links are sitting closer to the bottom.

    Also I am curious as to what causes the links to be pushed down by adding the image link.

    Here is my pen with the image link commented out:
    http://codepen.io/ErikAGriffin/pen/xGGyRx

    #201530
    Paulie_D
    Member

    Hmm…lets try that again

    http://codepen.io/Paulie-D/pen/aOOXGO

    #201531
    ErikAGriffin
    Participant

    That looks good, thanks! I really need to study up on the different display properties.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.