这是一个基础的HTML问题。
我有一些div标签,其中包含一些控件,占据了屏幕的左半部分。
我想要一个div标签在右侧显示一些消息?我尝试使用以下代码:
float = right;
在我的CSS类中,似乎没有起作用。我需要设置哪些其他属性。
以下是代码示例:
<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>