Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Gcobani Mkontwana
1k
1.2k
87.9k
Div class aligning
Aug 17 2020 4:22 AM
Hi Team
I need some help with aligning of my div, basically i have label and want @html.Editor(model=>model.CourseName) be next to this label. Somehow its not and need some help.
<div
class
=
"row"
>
<div
class
=
"col-xs-3"
>
<button type=
"button"
class
=
"btn btn-primary"
data-toggle=
"modal"
data-target=
"#exampleModal"
>
Start New Course
</button>
</div>
</div>
<!-- Modal -->
<div
class
=
"modal fade"
id=
"exampleModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class
=
"modal-dialog"
role=
"document"
>
<div
class
=
"modal-content"
>
<div
class
=
"modal-header"
>
<h5
class
=
"modal-title"
id=
"exampleModalLabel"
>Start New Course</h5>
<button type=
"button"
class
=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span aria-hidden=
"true"
>×</span>
</button>
</div>
<div
class
=
"form-group row"
></div>
<label
for
=
"CourseName"
class
=
"col-sm-2 col-form-label"
>CourseName:</label>
<div
class
=
"col-sm-8"
>@Html.EditorFor(model => model.CourseName,
new
{ htmlAttributes =
new
{ @
class
=
"form-control"
, autofocus =
"autofocus"
, placeholder =
"CourseName"
} })
// here it must next to the label and cant make it need help here please team.
</div>
</div>
<div
class
=
"modal-footer"
>
<button type=
"button"
class
=
"btn btn-secondary"
data-dismiss=
"modal"
>Cancel</button>
<button type=
"button"
class
=
"btn btn-primary"
>Create Course</button>
</div>
</div>
</div>
</div>
</div>
Reply
Answers (
3
)
How to restrict user from uploading malicious file to the application
How to create a new content in asp.net mvc?