These images are in a Form, and the second and third image are next to each other horizontally, but I’d like the first one on that same line, but it is on the line above them.
How can I line up all three of these horizontally?
What CSS do you have applied to that inputs? You can easily just set them to display:inline-block (no need to add the HTML that @lauren_olsen17 has given in her above post. That’s just extra unnecessary code).
It should all be on the same line though to begin with. I’m guessing you set the input to display:block; or something.
Thanks for all of your replies.
I’ve determined that when I remove this from my CSS:
form select, form input
{
display:table-cell;
vertical-align:middle;
}
I get what I’m after: ‘having the buttons all line up horizontally’, but that css code is being used for something else, so I don’t want to remove it. What’s your suggestion?
That code you just posted is VERY ambiguous and will be applied to all elements.
I’d rework that code. On the elements that you need it (for whatever reason), just add a class to the select / inputs and them update your CSS accordingly. If your contact form needs that, then do something like this
form#contact select, form#contact input{} etc. Make it specific to the form / individual elements.