Riske
Riske

Reputation: 35

How to put text in a scroll bar

What it is now.

So the txtarea on the left is what I typed in and when I put it through the Check a Api will check the availability of all the domains. But is it possible to put the $result in a scrollbar to?

This is the html code:

<body>
  <center>
    <h2>Multi domein checker</h2>
    <p>U kunt een maximum van 20 domeinnamen invoeren.</p>
    <div class="entire-thing">
    <form name="domainChecker">
    <div class="ad-left">
        <textarea rows="15" cols="18" name="domains"><?=htmlspecialchars(implode("\n", $domains))?></textarea>
    </div>
    <div class="ad-right">
        <b><?=$result?></b>
    </div>
    <div class="clear"></div>
    </div>
    <br><br><br>
    <br><br><br>
    <input type="submit" value="Check"/>
    </form>
  </center>
</body>

Upvotes: 1

Views: 916

Answers (1)

Pritam Jinal
Pritam Jinal

Reputation: 151

you could give a fix height to your right div and give a css "overflow-y:scroll"...

and if that doesn't solve your problem. then try creating the div itself after calling the API with the above css.

Upvotes: 1

Related Questions