Page 1 of 1

Adjusting Label font size using CSS

Posted: Thu Sep 19, 2013 7:01 pm
by osiris1@yahoo.com

In my css i have this entry:

.clockfacefont
{
font-size:100px;
}

On my form, I have a label called ClockFace. I assigned a class name to it in the property window.

But when I test the app, the label remains at the default font size. It seems to ignore the class.

In HTML this works with the "Note:" text at 100 pixels.

b class="clockfacefont"Note:[/b] This example does not work in IE, prior version 9.


Adjusting Label font size using CSS

Posted: Thu Sep 19, 2013 7:32 pm
by Maryna Brodina

Hi, it works for me.


Adjusting Label font size using CSS

Posted: Thu Sep 19, 2013 7:33 pm
by Maryna Brodina

What browser you use?


Adjusting Label font size using CSS

Posted: Thu Sep 19, 2013 7:33 pm
by osiris1@yahoo.com

the latest chrome browser for Windows7


Adjusting Label font size using CSS

Posted: Thu Sep 19, 2013 7:36 pm
by Maryna Brodina

Please ensure you use correct Class name
Image


Adjusting Label font size using CSS

Posted: Fri Sep 20, 2013 1:43 pm
by osiris1@yahoo.com

interesting... the class name is correct (i copied and pasted to make sure), but it is still not working.

I did assign a max property font size to 60px. When I test the app, it conforms to 60. So what takes prescience? It would seem that the control input value overrides the CSS?


Adjusting Label font size using CSS

Posted: Fri Sep 20, 2013 3:13 pm
by Maryna Brodina

Please try
code.clockfacefont {
font-size:100px !important;
}/code


Adjusting Label font size using CSS

Posted: Fri Sep 20, 2013 3:15 pm
by osiris1@yahoo.com

ah. That worked!!! Thanks.