search

Home  >  Q&A  >  body text

Can't the position of the words in flex cloth holy grail layout be changed?

I used the Holy Grail layout, but it is very difficult to change the position of the words. I want the words left and right to be placed in the upper left corner. 捕获555.PNGWhat method can be used to achieve this? I've been stuck here for 2 days and don't know how to implement it. I tried and the green square was at the top, but the words were still in the middle. What is the reason?

htmlcode

<div class="left" >
                                                                                     class="row3">1</div>
                                                                           #   </div>
    </nav>

css code

nav {

  padding: 5px;

}

.row {
width: 100%;
height: 90px;
background-color: lawngreen;
border-radius: 8px;
display: flex;
}
row3{
flex:1;
border-left:1px solid #fff;
}
row3 div:first-child{
border:1;
}

left , .right{
display: flex;
justify-content: center;

background: pink;

line-height: 500px;
/*text-align: center;*/
font-size: 20px;
font-size: 1.2rem;
color:red;

无花果树无花果树1986 days ago1043

reply all(0)I'll reply

No reply
  • Cancelreply