Formatting the fields in a form

Permalink
I used the new form block to create a form but when I am done editing, the input boxes are all out of line. See attachment. Where can I fix the formatting?

1 Attachment

 
linuxoid replied on at Permalink Reply
linuxoid
Assuming you've used the c5 core block 'Form', to edit its style you can copy folder

concrete/blocks/form

to

application/blocks/

and then edit a application/blocks/form/view.css file there.

PS. I haven't done this for a long time, if I'm not mistaken, copying the single view.css into an application/blocks/form may actually do as well.
JohntheFish replied on at Permalink Reply
JohntheFish
If its an express form, its not quite that simple. See
https://documentation.concrete5.org/developers/express/express-forms...
Itdepartment replied on at Permalink Reply
Thanks, working with the core block now but wanted to try express entity. Will definitely use your link. Very helpful.
Itdepartment replied on at Permalink Reply
JohntheFish do you have an example of how to do this. The documentation is not user friendly.
JohntheFish replied on at Permalink Reply
JohntheFish
'fraid not. When I need a custom form, I find it simpler and quicker to code it directly.

Looking again at your original post and screenshot, you may be able to get close enough with css in the theme to fix alignment and styling of entry fields and leave the express block alone. You would need the express styling convolutions if you need to do more complex layouts, insert boilerplate text etc.
Itdepartment replied on at Permalink Reply
Thank you. Yes, I am using the core block. I found the folder under my updates folder and copied it. Started messing with the code but it is not taking effect. We have our own custom theme (CSS) which I think is interfering. I appreciate the help.
Itdepartment replied on at Permalink Reply
After further digging into the code (got to love F12 in browsers), JohntheFish you are correct I am using an express form. Since I am using a custom theme I have to add the classes/formatting to my custom CSS page.

Linuxoid and JohntheFish, thanks for you help. You got me where I needed to be