View Full Version : Fonts on the .css Files

24 Jan 2012, 8:46 AM
Hi guys.
I just switched my project from eclipse to netbeans importing all the classes, everything works fine, but the default fonts of every label are different on netbeans, I had created a some personal properties for some Labels on the gxt-all file like this:

.gxt-Label-Tittles {
color: steelblue;
font-size: 18px;
font-style: normal;
font-weight: bold;
.gxt-Label-red {
color: Red;
font-style: italic;

As you guys can see, i dont define an specific font, i just modified some properties like the Color, and i just use this on tittle labels or some red labels that i need like this:

LabelField TittleLabelField = new LabelField("Familias - Clases - Atributos");
add(TittleLabelField, new AbsoluteData(6, 6));
TittleLabelField.setSize("255px", "22px");

and the rest of the labels just like this:

LabelField VersionTypeLabel = new LabelField("Version de FITU para:");
add(VersionTypeLabel, new AbsoluteData(16, 31));
VersionTypeLabel.setSize("122px", "20px");

So the concrete question is: where or how should i modify the file to get all the GXT labels (The default ones and the personal ones) to be displayed whit an specific font without defining a style name for each one like the line in red?, where can i find the default font established for the labels and modify it?

Thx so much for your answers.

31 Jan 2012, 4:27 AM
Either you overwrite all gxt-all.css with your own css using !important.
for example:
font-size:12px !important;

or you need to just change all the fontsize in gxt-all.css. I think this will help.

31 Jan 2012, 4:40 AM
I will guive it a try, do you know where is stored the default Style for all the labels?

31 Jan 2012, 8:45 AM
It will be in resourse/css folder. The name of file will be gxt-all.css.
You can search all default css here for all gxt widgets.