0

How Do I make the text start from the top instead starting right in middle?

<input class="card card-experience">
.card-experience{
    width: 600px;
    height: 100px;
    position: absolute;
    padding-bottom: 22px;
    top: 400px;
    border-color: black;
    box-sizing: border-box;
}
seenukarthi
  • 8,241
  • 10
  • 47
  • 68
Ahmed Ali
  • 21
  • 7

2 Answers2

1
  1. input type="text" is used for single lines of text.

  2. You can instead use "textarea", going by the size of your input element it seems that you want to take a large input or allow lot of lines of input. "textarea" will allow you to do that, and at the same time the text starts from the left top.

Refer: https://www.w3schools.com/tags/tag_textarea.asp

In case you use "textarea" and do not want the scroll bar then refer this :

Remove scrollbars from textarea

vS12
  • 310
  • 2
  • 8
0

Following may satisfy your requirement. Remove padding-bottom and change input tag to textarea

    .card-experience {
        width: 600px;
        height: 100px;
        position: absolute;
        top: 400px;
        border-color: black;
        box-sizing: border-box;
    }

    <textarea class="card card-experience"></textarea>

note: when you want to input data in multiple lines, input tag should be changed as textarea tag.