Customizing Forms - What are some tips and tricks?
I'm building a food ordering site, very simple one for now, and I'm trying to customize the form layout without much success.
https://codepen.io/Laing91/pen/bGOaEwr
There will only be a few sections until I get it up and running and look to add more, potentially, so I'm not sure how you would separate each selection?
Choose a bun: gluten, glutenfree, vegan (lettuce?)
Choose toppings: cheese, onions, ketchup, mustard
Choose hot dog: meat, vegan(?)
Right now it's all in a single row, would you use span or divs to separate each section inside the Form? or what is a common way to create this layout?
6 Replies
You would use divs, spans are used to style text mainly.
And then Iβd recommend using something like a flow utility class for spacing.
is the h2 AND label for Selecting toppings necessary, or can I just use 1 or the other?
I donβt really think you need the h2 imo.
I figure, I just didn't really know how to style it similarily, such as
When designing something like this for the first time, it is useful to see what others have done. I did an image search for food service software and found this: https://www.ezschoolapps.com/assets/images/school-lunch/lunch-point-of-sale-software,w_600.png
Look for more examples like that and decide which features to emulate and which ones you need to customize to fit the needs of your application.
Also note that this specific type of application is usually designed for touch screens. The select element would not work well in that situation.
Ah. Appreciate that, thank you, I tried looking for some but obviously failed miserably in my search.