SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard
    Join Date
    Feb 2009
    Posts
    1,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Center Vertically - a (hard?) quest

    Hello all, again.

    This is hard. (At least it seems to be);

    1) I should have a container of a min-width and min-height defined so that, if the image inside that container is very tiny, the container should maintain is position, by having the contained image centered, both vertically and horizontally.

    2) the container should be floated left;

    3) We will not know image dimensions.
    The only thing we know is that, it will not be wider or higher then a certain value.

    4) Excluding good browsers, the solution must work on ie8 and sup;

    5) This is semantically relevant information and not decorative, so using background position will not fit on this case.


    I can't find a way to vertically and horizontally center those images, and keeping a min-height and width defined.

    Can I have your help please?

    cf:
    .logo-organization-home

    http://help.nuvemk.com/centerImages/centerplease.php
    http://help.nuvemk.com/centerImages/style.css


    Thanks,
    mem

  2. #2
    Non-Member
    Join Date
    Apr 2011
    Location
    no fixed address
    Posts
    851
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <-- click me


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •