It is a basic HTML question.
I have some div tags, which have some controls and occupy left half of my screem.
I Want to have a div tag to display some messages in the right side?
I used somthings like:
float = right;
in my css class. It didn’t seem to work. What other properties I need to set.
Here is the code sample
<div class ="header_label">
@Html.GetLocalizedString("program_snapshotRecipientAdress") @Html.TextBox("txtRcpntAdress")
</div>
<div class ="header_label">
@Html.GetLocalizedString("program_snapshotUsertype1") @Html.RadioButton("Usertype", "One", new { id="rb1"})
@Html.GetLocalizedString("program_snapshotUsertype2") @Html.RadioButton("Usertype", "Two", new { id = "rb2" })
<div class ="commentsHeight"></div>
</div>
<div class ="header_label">
@Html.GetLocalizedString("program_snapshotDate") @Html.TextBox("SnapshotDate")
</div>
<div id ="CMSContent">
<div class ="CMS-message">
@Html.Raw("S=This is the div I need to place in the right hand side")
</div>
</div>
I didn’t understand your question so much, but I’ll try to answer.
If you have some div on the left and you want another one on the right you have two choice:
1) The first one is to set one div on the right and another on the left:
2) The second one is to set every div on the left