This
article will show you how you can manage div left align css in your asp.net,
mvc and html web applications. In this I have used only css to make the div
control to move left.
Now have a look of the below div control which are not having any div align code.
Now have a look of the below div control which are not having any div align code.
<body>
<div>DIV 1</div>
<div>DIV 2</div>
<div>DIV 3</div>
<div>DIV 4</div>
</body>
|
Now have a
look of the below output of above code.
<style>
.left {
float: left;
width: 100px;
background: #ff6a00;
border:1px solid #000000;
}
</style>
|
Now we will
add some html div controls and then we will use the above css to make the div
move left side.
<body>
<div class="left">DIV 1</div>
<div class="left">DIV 2</div>
<div class="left">DIV 3</div>
<div class="left">DIV 4</div>
</body>
|
In above
code I have assigned the css class to div control for making it moving on left
side of each other.
0 comments:
Please let me know your view