Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to move the beggining of the input in CSS?

I’ve styled the field of the input and i need it to start a little bit righter, as for now it looks really dumb. here what i have, and what i want to have, like move it little bit righter

<label><big><bold>Write the weight in Kilograms:</bold></big></label>
            <input placeholder="Type here:" type="text" id="inputOfKilos">
#inputOfKilos {
    color: #ffffff;
    font: 14px/40px "Proxima Nova", sans-serif;
    background: burlywood;
    border-radius: 20px;
    cursor: pointer;
    border: rgb(254, 144, 0);
}
#inputOfKilos::placeholder {
    color: #fff;
    position: relative;
    left: 12px;
}

I tried to Google it, but found nothing, also i’ve asked GPT but got the same result. I’ll be really happy if you helped.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

It is very simple add padding-left:14px; in code css

#inputOfKilos {
    color: #ffffff;
    font: 14px/40px "Proxima Nova", sans-serif;
  padding-left:14px;
    background: burlywood;
    border-radius: 20px;
    cursor: pointer;
    border: rgb(254, 144, 0);
}
#inputOfKilos::placeholder {
    color: #fff;
    position: relative;
    left: 12px;
}
<label><big><bold>Write the weight in Kilograms:</bold></big></label>
            <input placeholder="Type here:" type="text" id="inputOfKilos">
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading