tags:

views:

214

answers:

1

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

+2  A: 
<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>
Will
Hur? I'm not wrapping anything in a div.
Will