WebSite X5Help Center

 
Jon C.
Jon C.
User

Multi-line text link in header  en

Auteur : Jon C.
Visité 895, Followers 2, Partagé 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.

Posté le
2 RéPONSES - 1 CORRECT
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

Lire plus
Posté le de Paul M.
Jon C.
Jon C.
User
Auteur

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

Lire plus
Posté le de Jon C.