Xpages link control - how to remove the underline

Hi

I’m trying to create a link which is not underlined. I tried adding a class in application.css –

.noUnderline { text-decoration: none};

But when I add ‘noUnderline’ to the Class field of the link, it’s ignored.

Any hints?

thanks

clem

Subject: Try this

rather than using “.noUnderline { text-decoration: none};” try the following:

.noUnderline {

text-decoration: none;

}

Subject: Still the same

Thanks for the reply. Here’s what’s in the source. You can see that the new class=‘noUnderline’ is being ignored. The css IS being loaded.

HOME

Subject: Style overrules class

You have set “text-decoration:underline” in the style argument and that will overrule the style defined in the class.

You wil have to remove “text-decoration:underline” from the element’s style argument.

Subject: How do you remove it?

That text-decoration is being dropped in by Notes, I’m not controlling it. Not sure how it got in there and now not sure how to get rid of it. Here’s my link. There’s nothing in there specifying a text-decoration, yet it’s in the source of the web page.

thanks

clem

<xp:link escape=“true” text=“Technologies” id=“link1” style=“font-family:Arial;color:rgb(0,0,0)”><xp:eventHandler event=“onclick” submit=“true” refreshMode=“complete”>

<xp:this.action>



	<xp:actionGroup>

		<xp:executeScript>

			<xp:this.script><![CDATA[#{javascript:sessionScope.put("pageIndex","03");}]]></xp:this.script>

		</xp:executeScript>

		<xp:openPage name="/BPChildPage.xsp"></xp:openPage>

	</xp:actionGroup>

</xp:this.action></xp:eventHandler></xp:link>

Subject: try cleaning the project

I pasted your link in a new xpage and do not see the text-decoration in the source…

I don’t know what’s wrong but you could try cleaning your project (menubar: Project - Clean)