View Full Version : font-size being ignored for LabelField

15 Jul 2009, 12:47 PM
in my css file i have the following:

font-family: verdana;
font-weight: bold;
font-style: normal;
color: gray;

In my java, i have this
this.nameField = new LabelField(this.player.getName());

Once rendered, all style properties work except the size. I have tried most all of the valid size values such as small, medium, large, pc, em, %'s and nothing changes the size of the font.

Any clues?

15 Jul 2009, 12:49 PM
Try to add !important for the font-size rule. I suggest to use firebug to inspect css issues.

15 Jul 2009, 1:03 PM
That works.

I did notice in firebug that the size i had originally specified has a strikethrough line through it. Does this mean it was overwritten?