0

I want to give left padding inside the input element so to separate user typed text and border of input element. enter image description here

Muhammad Bilal
  • 114
  • 1
  • 10
  • 2
    What is your current CSS? Please provide your code so we can see what you have already tried. FWIW it should be as simple as: `input { padding-left: 10px; }` ;) – Andrew Newby Sep 02 '21 at 08:15
  • 2
    Yes, you can do `input {padding-left: 9001px;}` – Justinas Sep 02 '21 at 08:17
  • Does this answer your question? [Add padding to HTML text input field](https://stackoverflow.com/questions/6586302/add-padding-to-html-text-input-field) – Mehravish Temkar Sep 02 '21 at 08:20

1 Answers1

1

You can provide left padding to an input like this:

input[type=text] {
  padding-left: 20px;
}
DroopyDev
  • 61
  • 3