i'm new to RAZOR syntax + mvc in asp.net. I'm webforms veteran and have worked a lot in that but now i don't know that how to apply CSS to my DIV containers. in web forms i used to do like:
div
{
width: 200px
background-color: blue;
}
now how to do this in razor view ?
my code:
@{
ViewBag.Title = "Home Page";
}
@using (Html.BeginForm("register","Home", FormMethod.Post, new {id="submitForm"}))
{
<div style="Width:200px">
<i>@Html.Label("Name:")</i>
@Html.TextBox("txtboxName")
</div>
<br />
<div style="Width:200px">
<i>@Html.Label("Email:")</i>
@Html.TextBox("txtboxEmail")
</div>
<br />
<div style="Width:200px">
<i>@Html.Label("Password:")</i>
@Html.Password("txtboxPassword")
</div>
<br />
<div>
<button type="submit" id="btnSubmit" name="Command" value="Submit">Submit</button>
</div>
}