How to vertically align a paragraph next to a button

Viewed 17

Beginner question about bootstrap, i just cant get a solution for this problem!

I want to have both the 'Send' and 'Problem in Sending Mail' text on the same line.

Code:

<div class="d-inline-flex">
    <button class="btn" name="submit" onClick="sendContact();">Send</button>
    <p class="">Problem in Sending Mail.</p>
</div>

Whatever i do, the 'Problem in Sending Mail' text is always at the top of the div space.

enter image description here

How can i fix this?

1 Answers
Related