A
A
Anton2019-07-09 11:33:03
css
Anton, 2019-07-09 11:33:03

How to center select on mobile?

There is a select and I can’t align it in the center on a mobile phone, although everything is fine on a desktop.

select {
display: block;
        height: 100%;
        padding-left: 0;
        font-family: $f-medium;
        font-size: 26px;
        font-weight: 500;
        text-align: center;
        text-align: -webkit-center;
        border: 1px solid red !important;

        text-align-last: center;
        -moz-text-align-last: center;
        appearance: none;
}

5d2451372c41e213734967.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
BandFourse, 2019-07-09
@BandFourse

Try position: absolute;
left: 30px;

A
Alex-1917, 2019-08-30
@alex-1917

and so? or so?

select { 
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question