• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.

How to set font size for text-input form field

0 votes
I am trying to have users type into a text field, but the type is coming out very small. I tried to change it by setting a paragraph style as well as directly changing the font size, but when in5 exports to html, I still get very tiny text.
asked Feb 14 in how_to by jcfalteredimage (300 points)
    
Can you send me a sample of the output?
You can download the source test file here:
https://alteredimage.sharefile.com/d-s3e8696b4b5f430ab

I need to be able to get the font larger in the form field box. Any advice is great appreciated.
Thanks for the file!

1 Answer

0 votes
 
Best answer

For now, you can apply the following code as a .css file in the Resources section of the in5 dialog:

input { font-size: inherit; }

It will override the browsers default font-size for the input and make it a more normal size.
 
This code will automatically by applied in the next in5 update.
 
I'm also working on supporting the Font Size setting that has been added to the Buttons & Forms Panel in recent updates.
 
Alternatively, you can give the text input a specific font size (or other properties), e.g.,

input { font-size: 16px; }

 

 

answered Mar 8 by justin (111,760 points)
selected Mar 15 by justin
Thanks for the response. input actually didn't work but I changed input to .pageItem and that worked
OK. That will do. :-)
...