Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Centering a Teble in VS2012

$
0
0

Greetings,

I am writing an HTML code in Visual Studio 2012 to center a table, but unfortunately, in the design view, it is shown as not centered, but when I run the website, it is centered. I want to see it centered in design and at runtime, not only at runtime. I didn't face this problem using previous versions of Visual Studio (i.e. 2008, 2010), but only I faced this in Visual Studio 2012.

The code I am writing is as follows:

<body>
    <form id="form1" runat="server">
    <div style="margin:0px auto">
        <table style="margin:auto">
            <tr>
                <td align="center">Hello World!</td>
            </tr>

        </table>
   
    </div>
    </form>
</body>

I appreciate your help.

Regards,
Omar


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>