WebSite X5Help Center

 
Juergen S.
Juergen S.
User

How to format the advert using css?  en

Автор: Juergen S.
Просмотрено 1163, Подписчики 1, Размещенный 0  
Тэги: advert,css,formatting

I'd like to Format the text in the advert by using css. I did try and added the css to the site and to the page, but it doesn't work. The only formatting that seems to work is html-formatting the old way. So, how can I use css on the advert?

Размещено
5 Ответы - 1 Корректно
Incomedia
Claudio D.
Incomedia

Hello Juergen,

You can use css by adding the css code in the HEAD and then by calling the classes or IDs in the code.

The css code and the container needs to be separated and then you cann with in the HTML code the class containing your css code.

Many thanks!

Читать больше
Размещено От Claudio D.
Juergen S.
Juergen S.
User
Автор

It seems I wasn't able to explain what ther problem is: The advert is a little rectangle, containing a picture of the product and a text. This is, where I had to use old html while css didn't work. See picture please.

Читать больше
Размещено От Juergen S.
Incomedia
Claudio D.
Incomedia

Hello Juergen,

You cannot use inline css code but if you add css instructions in the HEAD section in a Class element and then you load the class in the html code it will allow you to use css styling.

Many thanks!

Читать больше
Размещено От Claudio D.
Juergen S.
Juergen S.
User
Автор

Hi,

see the picture attached. This is what I did, and it does NOT work. Do you have any idea why?

Читать больше
Размещено От Juergen S.
Incomedia
Claudio D.
Incomedia

Hello Juergen,

to load a class avoid " " simbols like as example:

<span class=testklasse>some text</span>

And for instead of Text-Color, which is deprecated, use directly the css style "color".

Many thanks!

Читать больше
Размещено От Claudio D.