PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, September 30, 2022

[FIXED] How to vertically align a paragraph next to a button

 September 30, 2022     bootstrap-5     No comments   

Issue

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?


Solution

Try align-items: flex-end ?

<div class="d-inline-flex align-items-end">

https://getbootstrap.com/docs/4.0/utilities/flex/#align-items

enter image description here



Answered By - limco
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing