Steven
Steven

Reputation: 13769

ASP.net GridView Margins

How can I set the margin-left property of the HTML table generated from an ASP.net GridView?

Upvotes: 0

Views: 10807

Answers (1)

user1228
user1228

Reputation:

<asp:GridView id="hurfDurf" style="margin-left:10%;" runat="server">
</asp:GridView>

Alternatively, at the top of your aspx page...

<head>
    <style type="text/css">
    #hurfDurf table
    {
        margin-left:10px;
    }
    </style>
</head>

Upvotes: 6

Related Questions