A
A
AlPaco2018-02-26 13:01:06
css
AlPaco, 2018-02-26 13:01:06

Button is not displaying correctly on mobile, how to fix it?

Button is not displaying correctly on mobile, how to fix it?
It should be like this (screen from desktop):
5a93d7db71969174191555.png
And it is displayed like this (screen from iPhone):
5a93d809614d9402957936.jpeg
Obviously, the width on the phone is larger than it should be, that's why everything moves out. Can this be reset or bypassed somehow?
Button code:

.subsplus {
    width: 40px;
    height: 40px;
    color: #FF2525;
    background-color: white;
    font-size: 30px;
    font-weight: bold;
    float: right;
    margin-top: 5px;
    border-radius: 20px;
    border: 1px solid #FF2525;
    -webkit-appearance: none;
    -moz-appearance: none;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-02-26
@AlPaco

1. check and/or reset the padding and margin for the button
2. check and/or reset the padding and margin for the elements inside the button
3. put on the buttondisplay:block;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question