Forums

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

Home Forums CSS Vertical align floating div

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #152240
    Marcel
    Participant

    Hi guys,

    I have been trying for hours to vertical align an div containing another div with a facebook icon. I can’t get it to work however and I hope someone can help me out here. You can find the div on this site: http://4077699.mijnwinkel.nl/overmaaike On the top right side.

    The div .icontainer has to be vertically aligned in the pink space.

    Thx for your help.

    Marcel

    #152241
    Alen
    Participant

    Add this:

    .icontainer{
      margin-top:10px;
      border:none;
    }
    
    #152243
    Paulie_D
    Moderator

    That does seem to be the easiest way of solving this.

    #152251
    Marcel
    Participant

    Thx for your replies. Margin-top is a possible solution. But there also has to be a solution to exactly vertical align this div in the parent.
    I’m trying to understand what’s going wrong here and learn from it.
    Especially because the vertical aligning of elements is something that happens often.

    #152253
    Alen
    Participant
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.