Using 'pre' or something else for input

I have a behavior with a field, which I need to style with CSS.

Now, I use a customized widget with <pre> and use javascript to copy the input to the <input> field.

Is there a better way to do this?