का उपयोग करते हुए उसी पंक्ति पर लेबल और टेक्स्ट बॉक्स एक नया asp.net mvc3 ऐप बनाते समय आपको लॉगऑन मिलता है और पाठ फ़ील्ड के ऊपर वाले लेबल के साथ फॉर्म पंजीकृत करता है। मैं काम नहीं करता हैसीएसएस
@using (Html.BeginForm()) {
<div>
<fieldset>
<legend>Account Information</legend>
<div class="editor-label">
@Html.LabelFor(m => m.UserName)
</div>
<div class="editor-field">
@Html.TextBoxFor(m => m.UserName)
@Html.ValidationMessageFor(m => m.UserName)
</div>
<div class="editor-label">
@Html.LabelFor(m => m.Password)
</div>
<div class="editor-field">
@Html.PasswordFor(m => m.Password)
@Html.ValidationMessageFor(m => m.Password)
</div>
<div class="editor-label">
@Html.CheckBoxFor(m => m.RememberMe)
@Html.LabelFor(m => m.RememberMe)
</div>
<p>
<input type="submit" value="Log On" />
</p>
</fieldset>
</div>
सीएसएस इसलिए दोनों लेबल और क्षेत्र एक ही लाइन पर हैं कि इसे बदलने और
निम्नलिखित गठबंधन करना चाहते हैं:
.display-label,
.editor-label
{
display:inline-block;
width: 200px;
text-align: right;
margin-right: 10px;
}
.display-field,
.editor-field
{
display:inline-block;
margin: 0.5em 0 0 0;
}
बस छोड़ दिया फ्लोट करने की कोशिश की और फ्लॉप work.can तुम मुझे बताएंगे कि कैसे आप सीएसएस सवाल – user9969
में उल्लेख बदल जाएगा मुझे अपने मार्कअप दिखाने के लिए और अगर आप – kinakuta
जरूरत है मैं प्रश्न संपादित किया है मैं एक और jsfiddle बना सकते हैं और आप इसे सभी – user9969