Help with css... flex box

when i apply flex property to my container , the button disappears…
i cant find the button , can anyone help me ???


<div class="msg-container">
  <div class="msg">
    <form action="">
      <p>Lorem ipsum, dolor sit amet consectetur adipisicing. Lorem, ipsum dolor.</p>

      <textarea name="" id="" placeholder="Message to the customer"></textarea>

      <button class="">Accept</button>


*, *::before, *::after{
    padding: 0;
    margin: 0;
    box-sizing: border-box;

    height: 100%;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;

    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    content: " ";
    display: block;
    position: absolute;
    width: 100%;
    background: rgb(0, 0, 0);
    opacity: 0.7;

.msg button{
    border-radius: 13px;
    text-align: center;
    width: 150px;
    font-size: 35px;
    border: none;
    border: 1px solid black;
    color: white;

    /* box-shadow: 0px 12px 14px rgba( 0, 0, 0, 0.2 ); */
.msg button:hover{
    cursor: pointer;
    background-color: #28a745;
    background-color: #dc3545;
    width: 80%;
    margin: auto;
    background: #fff;
    height: 380px;
    border-radius: 13px;

    z-index: 2;
    text-align: center;

.msg form{
    height: 100%;
    background: #324960;
    display: flex;
    flex-direction: column;
    flex: 1;
.msg h1{
    margin: 14px;
.msg p{
    padding: 15px;
    font-size: 24px;

.msg-container textarea{
    width: 80%;
    margin:  auto;
    font-size: 26px;

Hi @shumak,

Thank you for your question. I’d suggest you to create a pen for code so that we can easily test it. And try to be more specific with your issue.

Do you mean .msg-container or .container only?

What do you mean by

I assume that you are talking of display: flex;. Aren’t you? If that is the case, we can’t see any use of flex property in your code. Can you help with this so that we help debug your issue?

Put it in a JSFiddle and it seems to be working. The button is on the bottom/left of the msg-container. The only thing I changed was display: none, to display: flex;