Hyperlink format

The default format for a HTML text hyperlink in Servoy has the ugly blue underlined style…
How can I define the a:link style in Servoy?

Hi Karel,

You define that style inside the HTML you want to display.
Just like you do for any other webpage.

Hope this helps.

ROCLASI:
Hi Karel,

You define that style inside the HTML you want to display.
Just like you do for any other webpage.

Hope this helps.

Hi Robert,

	'<head>\n' +
		'<style type="text/css"></style>\n' +
	'</head>\n\n' +

Did try this at first.. but the ‘a:link { blablabla’ line just don’t work…

(I use the ‘\n’ to display the HTML a bit nice in some text area fields)

Hi Karel,

I did some testing. Loose the ‘:link’ and it works.
When CSS doesn’t work you can always use the old fashioned way of doing things with

Hope this helps.

ROCLASI:
I did some testing. Loose the ‘:link’ and it works.

Thanks Robert! That solved it! You’re the best :D !

I have the same pb

I use:

globals.tp_var10 = "<html>\n"
globals.tp_var10 += "<body>\n"
globals.tp_var10 += '<head>\n'
globals.tp_var10 += '<style type="text/css"></style>\n' 
globals.tp_var10 += '</head>\n' 
globals.tp_var10 += "<a href='#'>toto</a>"
globals.tp_var10 += "</body>\n"
globals.tp_var10 += "</html>\n"

‘toto’ has the ugly blue underlined :confused:

You should start the body() after closing the head().

So, change your code in:

globals.tp_var10 = "<html>\n"
globals.tp_var10 += '<head>\n'
globals.tp_var10 += '<style type="text/css"></style>\n'
globals.tp_var10 += '</head>\n'
globals.tp_var10 += "<body>\n"
globals.tp_var10 += "<a href='#'>toto</a>"
globals.tp_var10 += "</body>\n"
globals.tp_var10 += "</html>\n"

that’ll work

oh yes ! sorry !

Thanks Joas.