connectseekers.com

Thursday, 9 October 2014

Responsive Grid Design Example Using Css in Asp.Net MVC,HTML

10/09/2014 - By Pranav Singh 0

This article will show you how you can design responsive grid design example using css in asp.Net MVC,HTML. In this grid style will change as per resolution. This we can use in MVC2, MVC3, MVC4, MVC5.

So for this article first we will create a new asp.net mvc application and add the below code in your view.

@{
    ViewBag.Title = "Responsive Grid Design Example Using Css in Asp.Net MVC,HTML";
}
<style>
    div
    {
        text-align: center;
        float: left;
        width: 90px;
        height: 90px;
    }
</style>
@using (Html.BeginForm("Index", "Home"))
{
    <div id="divfood" style="width: 100%">
        <div>
            <img src="../../Images/bananas-icon.png" />
        </div>
        <div>
            <img src="../../Images/beer-icon (1).png" />
        </div>
        <div>
            <img src="../../Images/Coffee-Cup-icon.png" />
        </div>
        <div>
            <img src="../../Images/Piece-of-cake-icon.png" />
        </div>
        <div>
            <img src="../../Images/Steak-icon.png" />
        </div>
        <div>
            <img src="../../Images/strawberry-icon.png" />
        </div>
    </div>
}

In above code have a look of the below mention style sheet.

    div
    {
        text-align: center;
        float: left;
        width: 90px;
        height: 90px;
    }

In this I have assigned the float left, width and height of all the div controls. Have a look of the output.


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
Email Id : contact@aspdotnet-pools.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


Top jQuery Plugins

Global Classified : Connectseekers.com
© 2014
back to top