Sypher wrote:
> I have a webpage with a DIV, that contains other 3 divs ...
> How can i align the container DIV in the middle of the webpage?
> It has not a "align" attribute ...
http://dorward.me.uk/www/centre/
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
This did not work.
Following their suggestions to put
HTML:
style="margin-left: auto; text-align:center; margin-right: auto;"
I even tried it in a number of places and it still did not center the control:
HTML:
<body><center>
<form id="form1" runat="server" style="height:100%; margin-left: auto; text-align:center; margin-right: auto;">
<center>
<div id="silverlightControlHost" style="margin-left: auto; text-align:center; margin-right: auto;">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%" style="margin-left: auto; text-align:center; margin-right: auto;">
<param name="source" value="Bin/Debug/SilverlightApplicationThree.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.50826.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
</div>
</center>
</form>
</center>
</body>