1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    17
    Vote Rating
    0
    Answers
    1
    micsencha is on a distinguished road

      0  

    Default Answered: center an image horizontally

    Answered: center an image horizontally


    Hi, this is my GUI:
    imgcar.jpg
    I would center the image horizontally....
    Can you help me? I can not understand how to do this.

    Thanks in advance

  2. Solved with
    • margin: 0px auto;
    • width: 50%;

  3. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    Answers
    102
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    You will need to set the CSS for the image as: margin-left: auto; margin-right: auto;

  4. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    17
    Vote Rating
    0
    Answers
    1
    micsencha is on a distinguished road

      0  

    Default


    Solved with
    • margin: 0px auto;
    • width: 50%;

Thread Participants: 1

Tags for this Thread