WebSite X5Help Center

 
Jon C.
Jon C.
User

Multi-line text link in header  en

Autore: Jon C.
Visite 881, Followers 2, Condiviso 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.

Postato il
2 RISPOSTE - 1 CORRETTO
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

Leggi di più
Postato il da Paul M.
Jon C.
Jon C.
User
Autore

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

Leggi di più
Postato il da Jon C.