You are viewing limited content. For full access, please sign in.

Question

Question

CSS code for a two character field

asked on December 30, 2019

Hi, I would to know if there is a two character css code. I would like it to make it look like this:

LABEL   INPUT

States:   TX

 

But I need to have coding short so I can fit all of this in one linen a form.

Address      City    State   Zip

0 0

Replies

replied on December 30, 2019

Can you clarify what you mean by "two character css code"? Are you just trying to style an input to be 2 characters wide? If so, that's not really how CSS works. Element width is usually in terms of pixels while character width depends on the font and which characters you choose (since most fonts are not fixed-width). But since you know all of the possible inputs and the font, you can specify a width that works.

1 0
replied on December 30, 2019

ok Thanks

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.