Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create paragraph with placeholders

I need to create paragraph of text with missing words as on the picture provided:

enter image description here

I want user to fill missing words, and thus I'd like to make spans (that are placeholders for missing words) contentEditable=true

Is it possible to achieve with css?

like image 934
Alex Smolov Avatar asked Sep 16 '26 02:09

Alex Smolov


1 Answers

HTML:

This is text <input type="text" class="a" /> and here is a space.

CSS:

.a{
    border:none;
    border-bottom: 1px solid black;
    width:50px;
}
like image 144
Sukrit Gupta Avatar answered Sep 17 '26 15:09

Sukrit Gupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!