Relume Community Icon
Relume Community
  • 馃彔Home
  • 馃搮Events

  • 馃數Announcements
  • 馃數General
  • 馃數Getting Started
  • 馃數Issues
  • 馃數Showcase

Powered by Tightknit
General
General

How to Center Align an Element: Tips and Suggestions

Avatar of Quinn B.Quinn B.
路

Stupid question, but for the life of me I can't get this element to align in the center! Any suggestions?

11 comments

  • Avatar of Mike
    Mike
    路

    Text align center on the parent?

    馃憤1
  • Avatar of Quinn B.
    Quinn B.
    路

    Thanks for responding so quickly Mike. So I've applied the text align center to each on of the parents (or what I would think is the partents) and still noting. Would you point out which one I would need to apply that class to?

  • Avatar of Mike
    Mike
    路

    Ah I think I see now. Try left and right margin as auto

  • Avatar of Mike
    Mike
    路

    On the max-width div

  • Avatar of Quinn B.
    Quinn B.
    路

    Aha! You're the best! I'm trying my hardest to strictly use Relume's classes and not use all my own funky ones. Thanks for your help!

    鉂わ笍1
  • Avatar of Mike
    Mike
    路

    haha on the max-width-*name* divs there's usually a combo class for align-center.

  • Avatar of Mike
    Mike
    路
  • Avatar of Quinn B.
    Quinn B.
    路

    I noticed that when I had that div selected. Didn't realize those show up there. Thanks again for your help.

  • Avatar of Quinn B.
    Quinn B.
    路

    Follow up question if I may. How would you recommend cetnering this max width div?

  • Avatar of Mike
    Mike
    路

    same again really. Add a combo class to max-width-large called align-center and set left/right to auto

  • Avatar of Quinn B.
    Quinn B.
    路

    Perfecto. Thanks again for your help.

    馃檶1