I have a view with a section defined thus:
<%=ViewData.Model.Body %>
-
Your code will be invalid as you are using IDs when this should be a job for classes. This will do what you want:
#AskingUser {
border: none;
float: right;
width:auto;
padding: 2px;
position: relative;
text-align: right;
}
and add
#QuestionBody {
border-bottom: 1px dotted black;
overflow: hidden;
}
I've left it as IDs but you should adjust all your CSS and HTML so that they are classes instead
.askingUser {}
and
if that makes sense.