taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

HTML Component CSS

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

HTML Component CSS

Hi -

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

taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

HTML Component CSS

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

HTML Component CSS

Hello,

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

taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

HTML Component CSS

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,

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

HTML Component CSS

Hello,

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

taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

HTML Component CSS

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)

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

HTML Component CSS

Could you please show the code that you are using?

taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

HTML Component CSS

This is the code string coming from the rest service :

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

(The string contains html tags)

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

HTML Component CSS

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

here htmlComponent - name of the component html

Return to “Issues”