Weird ASP.NET Problem

Associate
Joined
2 Sep 2007
Posts
2,001
I have come across this a few times but have ignored it and found a workaround. But I've come across it again and it's annoying. If I setup Absolute Positioning in my .aspx page and put a button on the page it looks fine but if you maximise the page is stretches. This is when you preview the page not in design mode.

See here: -

http://img100.imageshack.us/my.php?image=weirdproblemsd2.jpg - Ignore the other stuff just testing different controls.
 
Nevermind sorted.

<asp:Button ID="Button1" runat="server" Style="z-index: 104; left: 680px; width: 100px; position: absolute;
top: 504px" Text="Button" />

added width: 100px; and it's sorted
 
Back
Top Bottom