Author: cfalc0n | Posted on: 10/10/2008 9:18:46 AM | Views : 416

I would like to control the size of an asp:HyperLink in a way that will render the same in most popular browsers.  I would also like to control where the text of the hyperlink appears within that space.

This:

<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/default.aspx" Height="50px" Width="200px">Click Here</asp:HyperLink>

Generates this HTML:

<a id="ctl00_ContentPlaceHolder1_HyperLink1" href="default.aspx" style="display:inline-block;height:50px;width:200px;">Click Here</a>

 

This rend ...

Go to the complete details ...