PDA

View Full Version : How to set the font for Display field in a combo or a date field


marimuthup
07-27-2007, 01:16 PM
Hi,

I had been trying to set different font for the Combo and the Date field.

I am able to set the font for the list, select and empty text.

I tried setting the font for the input text, but it didn't work.

Could Some one please tell me which class should I use to set the font for display field?

Thanks in advance.

With regards
P.Marimuthu

tryanDLS
07-27-2007, 02:18 PM
Use firebug to see what CSS class is applied to that field.

marimuthup
07-27-2007, 03:44 PM
Thanks alot.

.x-form-text {
font:normal 10px Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.x-form-field {
font:normal 10px Verdana, Geneva, Arial, Helvetica, sans-serif;
}

These are two classes for the form field.

I am new to web progamming. Fire bug is a good debugger.

Also I would like to know is there anyway I can find which font is used by selecting a text in a webpage. I am not able to see the style information other than digging upon the CSS and compare with the classes.

Its bit time consuming to find this.

Do U know anytool which I can use to find the font informaion by selecting the text.

This might not be a related post on this. But might be helpful for newbees like me.

tryanDLS
07-27-2007, 04:08 PM
I you click on an HTML element in firebug, it will display all the applicable CSS in the right window. Or, you can use another Firefox addon called WebDeveloper which does some of the same type of things.