WebSite X5Help Center

 
A A.
A A.
User

CSS code works in the HTML object but doesn't globally  en

Auteur : A A.
Visité 2272, Followers 2, Partagé 0  

Hello Support,

I found that if I place the following code in the Expert tab of HTML object it works as expected:

h1, h2 {display: inline-block;}

However if I place the same code in the Statistics, SEO and code it does not remove newline after <h1> and <h2> tags. I tried placing the code in the HEAD section as well as in all other places (out of frustration). Please do not tell me that this is the custom code and therefore you do not support it. The problem is very clearly lays with Website X5 v13 pro if I am putting the css code in the correct place.

Posté le
2 RéPONSES - 1 CORRECT
Incomedia
Claudio D.
Incomedia

Hello Max,

In the Statistic, SEO and code you need to specify it is css code by adding it between <style> and </style>

Many thanks!

Lire plus
Posté le de Claudio D.
A A.
A A.
User
Auteur

Hello Claudio,

Thank you for the responce. You suggestion worked - after adding <style>h1 {display: inline-block;font-size: 22px;}</style> in the HEAD of Statistic, SEO and Code css styling is recognized globally.

Lire plus
Posté le de A A.