Fixing the width of an HTML element

fixed width ice cream sales.png

If you want to make an element input with fixed with labels you can do it by adding this to the style for the element:

.menuLabel {
display:inline-block;
width:12em;
margin: 10px;
}

The width bit sets the width of the label and the inline-block setting for display makes sure that the input field lines up properly. You can use it to make other things line up too.