0

I am having a slight issue with my textarea in html, when I add the Placeholder attribute it doesn't seem to be visible until I highlight and press backspace also the cursor appears further away from the initial leftmost position.

<html>

<head>
  <title>
    Post a Task
  </title>

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="css/bootstrap.min.css">



</head>
<body>
<div class="card" style="width: 50rem; margin-top: -40px; padding: 20px; margin: auto;">
    <div class="card-body">
      <h5 class="card-title text-center"  id="Signup_Title">POST YOUR TASK </h5>
      <!--<h6 class="card-title text-center"  id="Signup_Sub_Title"></h6>-->
      <form>

        <div id="formpage_1">
          
            <div class="form-row">
                <div class="form-group col-md-12">
                    <label>Brief Title:</label>
                  <textarea class="form-control" cols="50" rows="2"  placeholder="Brief Title">
                    
                  </textarea>
                  
                </div>
              </div>

          <div class="form-row">
            <div class="form-group col-md-12">
              <label>Detailed Description:</label>
              <textarea class="form-control" cols="50" rows="8"  placeholder="Detailed Description">
                
              </textarea>
              
            </div>
          </div>

          <div class="form-group">
              <button type="menu" class="btn btn-primary form-control"
                style="background-color:#f9d342 ; color:#252218 ; border: none; width: 30%;">Attach File
                </button>
            </div>

     
        </div>
</body>

</html>
Wales77
  • 57
  • 8

1 Answers1

0

<html>

<head>
  <title>
    Post a Task
  </title>

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="css/bootstrap.min.css">



</head>
<body>
<div class="card" style="width: 50rem; margin-top: -40px; padding: 20px; margin: auto;">
    <div class="card-body">
      <h5 class="card-title text-center"  id="Signup_Title">POST YOUR TASK </h5>
      <!--<h6 class="card-title text-center"  id="Signup_Sub_Title"></h6>-->
      <form>

        <div id="formpage_1">
          
            <div class="form-row">
                <div class="form-group col-md-12">
                    <label>Brief Title:</label>
                  <textarea class="form-control" cols="50" rows="2"  placeholder="Brief Title"></textarea>
                  
                </div>
              </div>

          <div class="form-row">
            <div class="form-group col-md-12">
              <label>Detailed Description:</label>
              <textarea class="form-control" cols="50" rows="8"  placeholder="Detailed Description"></textarea>
              
            </div>
          </div>

          <div class="form-group">
              <button type="menu" class="btn btn-primary form-control"
                style="background-color:#f9d342 ; color:#252218 ; border: none; width: 30%;">Attach File
                </button>
            </div>

REMOVED WHITE SPACE