Forums

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

Home Forums CSS how vertical align actually work?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #45579
    Rajinder S. GIll
    Participant

    Hi,

    I did not understand, how this vertical align actually work?

    can anyone pls let me know how is this work?

    for a example: I have one box in that box, i have one button like “Contact Us” and i want to put that button on bottom. How i can do this on bottom.

    Thanks in advance
    RT

    #138970
    CodeGraphics
    Participant

    Something like [this?](http://codepen.io/codegraphics/pen/AcKGm “”)

    #138972
    Rajinder S. GIll
    Participant

    @CodeGraphics – thanks for your quick reply. Just one more question is that compatible with all browsers, like ie, phone browsers, safari etc?

    Thanks
    RT

    #138975
    CodeGraphics
    Participant

    I think so. Although i dont think absolute positioning works fine on small devices.

    #138976
    Kitty Giraudel
    Participant

    Absolute positioning works like a charm on small device. Fixed widths however…

    #139006
    Paulie_D
    Member

    It has nothing to do with absolute or relative positioning. I would rather come up with an HTML structure that will do most of the work for me rather than absolutely position an element.

    Obviously in some cases it’s…ahem…absolutely necessary but if I can avoid it, I will.

    https://css-tricks.com/what-is-vertical-align/

    Vertical align works to align multiple elements. A single element has nothing to align itself to.

    Codepen showing examples…

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

    #141447
    Kuzyo
    Participant

    there is some problems with comatibilities in using inline-block and vertical-align. Quote from https://css-tricks.com/what-is-vertical-align/ :

    > However, be aware that not all browsers treat inline-block elements the same way, so vertical-align may be the least of your worries.

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