PDA

View Full Version : font-size being ignored for LabelField



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

.playerNameField{
font-family: verdana;
font-weight: bold;
font-style: normal;
font-size:3em;
color: gray;
}

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

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?

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

jreue
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?