I have a div which has some text, but according to different situations this box can have different amounts of text contained within it. is there any way to make a div adjust its size in order to wrap the text that it contains.
Share
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.
I think that is better if you just use the height.
if you use width:auto, your webpage will distort and it won’t look so good, so you could use width if you use a fixed width like
or something like that