I have code like the below. Instead of having the box stretch all the way to the right how do i make it only as long as it needs to be?
<html><body>
<pre style="{border-style:solid;}">A Sentence</pre>
</body></html>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use
(the
{}don’t belong in the style block by the way)That would render the element as an inline object that doesn’t occupy full width anymore, but flows like normal text. However, that way, the next following element will follow right next to the
pre, and you may have to add<br>line breaks.