Page 1 of 1

HTML Component CSS

Posted: Sat Dec 26, 2015 4:56 pm
by taucher

Hello,

I am binding a data to HTML Component with Service. I tried to change "font-size" of the html but could't make it work.

How can i change it?

Thanksi


HTML Component CSS

Posted: Sat Dec 26, 2015 10:27 pm
by Illya Stepanov

Hi -

Could you please explain with more details what and where you are trying to change with your service.


HTML Component CSS

Posted: Sun Dec 27, 2015 7:02 am
by taucher

Hi,
I just want to style html component from css.


HTML Component CSS

Posted: Mon Dec 28, 2015 2:23 pm
by Alena Prykhodko

Hello,

Please send us you CSS, probably you use wrong selectors.


HTML Component CSS

Posted: Mon Dec 28, 2015 7:26 pm
by taucher

Hello Alena,

Selector is right. For example, when i don't bind the code with mapping, "font-size","color" and "background" css works. But when i bind the code or text with mapping, just "background" works.

Thanks,


HTML Component CSS

Posted: Mon Dec 28, 2015 9:46 pm
by Serhii Kulibaba

Hello,

Could you clarify what you have tried and what exactly does not work?


HTML Component CSS

Posted: Tue Dec 29, 2015 6:57 am
by taucher

Hello,

I need to change the "font-size" of the html component with css to but it doesn't work when i bind a html code to html component with mapping. (I gave a css name to html component and add "font-size" for that html)


HTML Component CSS

Posted: Tue Dec 29, 2015 7:04 am
by Illya Stepanov

Could you please show the code that you are using?


HTML Component CSS

Posted: Tue Dec 29, 2015 11:15 am
by taucher

This is the code string coming from the rest service :

code<p>This is a test html</p>/code

(The string contains html tags)


HTML Component CSS

Posted: Tue Dec 29, 2015 4:43 pm
by Serhii Kulibaba

Please use CSS like that:
pre[name=htmlComponent] p {
font-size: 10px;
}/pre

here htmlComponent - name of the component html