Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove underline from links on aspx form

Status
Not open for further replies.

VampireLestat

Programmer
Sep 25, 2002
2
SV
Hi, I want to know if it is possible to remove the underline from the hyperlinks defined on my aspx form. I have tried to define styles for the table where the hyperlinks are with the TEXT-DECORATOR set to NONE but doesn't work, also if I set the underline property to false it still shows the underline, however if I set the overline property to true I got the overline on the hyperlink and the underline is not displayed.

Is there an easy way to do this?
 
Have you tried assigning the text-decorator:None to each hyperlink to see if that helps?

D
 
What D means is the following. In the HTML portion of your page put this in:
<style>
a {text-decoration:none;}
</style>
You could get fancier and start naming the links that you want to show and not show by using the class option on the html tags. You would then modify the code like this.
<style>
.class_name {text-decoration:none;}
</style>
Hope that this helps you.
Klaz
 
Thank you... but to be honest, I'm new in aspx and I'm not sure where do I have to put the code.

THIS is the code generated by VB for my form:


<%@ Control Language="vb" AutoEventWireup="false" Codebehind="Footer.ascx.vb" Inherits="fortunysoftware.Footer" TargetSchema=" %>
<TABLE id="TableMenu" style="a: link {color: ; text-decoration: none; }" cellSpacing="1"
cellPadding="1" width="100%" border="1">
<TR>
<TD bgColor="black" align="left" width="5"><FONT face="Verdana" color="white"></FONT></TD>
<TD bgColor="black" width="100">
<P align="center"><asp:hyperlink id="Link1" runat="server" NavigateUrl="..\main.htm" Target="_top" Visible="False"
ForeColor="White" Font-Names="Verdana" Font-Size="11pt">Home</asp:hyperlink></P>
</TD>
<TD bgColor="black" id="CONTACTUS" width="120">
<P align="center"><asp:hyperlink id="Link2" runat="server" NavigateUrl="..\content.aspx?PG=ContactUs" Target="content"
Visible="False" ForeColor="White" Font-Names="Verdana" Font-Size="11pt" BackColor="Transparent">Contact Us</asp:hyperlink></P>
</TD>
<TD bgColor="black" width="150">
<P align="center"><asp:hyperlink id="Link3" runat="server" NavigateUrl="..\content.aspx?PG=PrivacyPol" Target="content"
Visible="False" ForeColor="White" Font-Names="Verdana" Font-Size="11pt">Success Stories</asp:hyperlink></P>
</TD>
<TD bgColor="black">
<P align="center"><asp:hyperlink id="Link4" runat="server" NavigateUrl="..\content.aspx?PG=Other" Target="content"
Visible="False" ForeColor="White" Font-Names="Verdana" Font-Size="11pt">Other</asp:hyperlink></P>
</TD>
<TD bgColor="black" width="30">
<P align="right"><asp:hyperlink id="Link5" runat="server" NavigateUrl="..\ChangeLanguage.aspx" Target="_top" Visible="False"
ForeColor="White" Font-Names="Verdana" Font-Size="11pt" ImageUrl="../Images/spainflag.gif">Español</asp:hyperlink></P>
</TD>
<TD bgColor="black" width="60">
<P align="left"><asp:hyperlink id="Link6" runat="server" NavigateUrl="..\ChangeLanguage.aspx" Target="_top" Visible="False"
ForeColor="White" Font-Names="Verdana" Font-Size="11pt">Español</asp:hyperlink></P>
</TD>
<TD bgColor="black" width="5"></TD>
</TR>
</TABLE>


Remember that this is generated code by VB, so I have to access it via the properties of the Hyperlink objects I have defined instead of simply adding code directly to the html.

Thanks in advance for your patience and your help
 
Cascading style sheets (CSS) is the technology you want to look into. If declared properly, you can define the style for the entire page without having to worry about each individual link.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top