Sunday, 29 October 2017

Div Left Align Css

10/29/2017 - By Pranav Singh 0

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.

<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.

So for this article first we will create as html page and add a css code mention below.

   <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.


Tags: ,
About the Author

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

Please let me know your view

Free Ebooks


About Us

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Contact Us

For writing article in this website please send request by your

GMAIL ID: dotnetpools@gmail.com

Bugs and Suggestions

As we all know that this website is for sharing knowledge and providing proper solution. So while reading the article is you find any bug or if you have any suggestion please mail us at contact@aspdotnet-pools.com.

Partners


Global Classified : Connectseekers.com
© 2014 aspdotnet-pools.com Designed by Bloggertheme9.
back to top