Forums

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

Home Forums CSS [Solved] text-align works with more than text!

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #168144
    GroovyMotion
    Participant

    I have been using text-align: center for a while an it seems to work on pretty much anything! When margin: 0 auto;doesn’t center the element I use the text-align and it works! Especially on images!
    Isn’t that weird, or what? :)

    #168152
    GroovyMotion
    Participant

    Ah…good point! Thanks for the clarification! :)

    #168154
    __
    Participant

    it will center inline elements only

    …andinline-block elements. :)

    #168158
    __
    Participant

    absolutely.

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