Change in textbox size

Post here questions and problems related to editing and publishing DITA content.
Raga Mounika
Posts: 49
Joined: Mon Mar 28, 2016 3:54 pm

Change in textbox size

Post by Raga Mounika »

Hi Team,

How can you make sure that the textbox size for textfield can be modified?
If it is possible please provide the code for changing the size of textbox.

Thank you.

Regards,
Mounika
alex_jitianu
Posts: 1016
Joined: Wed Nov 16, 2005 11:11 am

Re: Change in textbox size

Post by alex_jitianu »

Hi Mounika,

You can't impose a height for form controls but you can make them inherit the font size from the element they are bound to:

Code: Select all

text:before {
font-size:20px;
content: "Label" oxy_textfield(edit, '@scale', width, 10em, fontInherit, true);
}
In the previous example, the label preceding the form control will use the same font size. You can impose a different font size for the label like this:

Code: Select all


text:before {
font-size:20px;
content:
oxy_label(text, 'Label', styles, 'font-size:10px')
oxy_textfield(edit, '@scale', width, 10em, fontInherit, true);
}
To see all the properties supported by the form controls please look inside our documentation.

Best regards,
Alex
Post Reply