WebSite X5Help Center

 
Jon C.
Jon C.
User

Multi-line text link in header  en

Autor: Jon C.
Visited 882, Followers 2, Udostępniony 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.

Posted on the
2 ODPOWIEDZI - 1 PRAWIDłOWA ODPOWIEDź
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

Czytaj więcej
Posted on the from 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

Czytaj więcej
Posted on the from Jon C.