WebSite X5Help Center

 
Jon C.
Jon C.
User

Multi-line text link in header  en

Autor: Jon C.
Visitado 885, Seguidores 2, Compartilhado 0  

How is a multi-line text link added to the header and the font set to Verdana?
Adding a HTML item works for the link but the font can not be set as HTML5 does not use the font tag.

Publicado em
2 RESPOSTAS - 1 CORRIGIR
Paul M.
Paul M.
Moderator

Hello Jon,

You need to use CSS for this, by giving your hyperlink a class and then styling that class.  You can either add it your stylesheet, or do it simply inline as follows:

<a href="http://google.com"><span style="font-family: verdana;">This is a<br />multiline text link<br />to Google</span></a>

Kind regards,

Paul

Ler mais
Publicado em de Paul M.
Jon C.
Jon C.
User
Autor

Good morning Paul,

Thank you for your advice. I see that CSS is slightly different to Html, I must admit has been a while since I have needed to use it. Was using XSitePro and rarely needed to manually add or modify code as needed in X5. Reminds me a bit of when we started with web sites, writing code in Notepad.

Here is what I ended up with.

<a href="order-trial-dvd.html"><center>
<span style="font-family: verdana; font-size: 10px; ">CLICK HERE TO <br>ORDER DEMO & <br>TRIAL DVD</span></a>
</a></center>

Many thanks

Jon

Ler mais
Publicado em de Jon C.