Reputation: 5
HTML question. I want to insert a text box/block in an HTML page full of plain text. I want this text box to be aligned to the right and to be surrounded by the plain text (wrap). I also want to define the dimensions of the text box (width as % of the window, etc.) My goal is to insert a Latin text box into the Greek plain text in this example: http://kobzar.be/tmp/delme-020.pdf .
I suppose this must be sort of div
or span
or inline-block
tag, but I'm not sure. Please advise.
Upvotes: 0
Views: 127
Reputation: 89
You can use float
css propery.
.text-inside {
width: 50%;
float: right;
}
<div>
TEXT OUTSIDE
<div class="text-inside">
TEXT INSIDE
</div>
</div>
Upvotes: 1