HTML
.box { height: 400px; width: 500px; font-size: 20px; margin: auto; display: flex; justify-content: center; align-items: center; //text-align: center; border:1px solid red; }
.box{ width: 700px; height: 400px; border: 1px solid #f00; margin: auto; display: flex; flex-direction: column; align-items: center; } .box:before{ content: ''; flex-grow: .5; } .content{ width: 400px; border: 1px solid #f00; }
.box{ width: 600px; height: 400px; border: 1px solid #f00; display: flex; margin: auto; } .content{ width: 400px; font-size: 20px; border: 1px solid #f00; margin: auto; }
.box{ width: 600px; height: 400px; border: 1px solid #f00; display: flex; margin: auto; justify-content: center; } .content{ width: 400px; font-size: 20px; border: 1px solid #f00; align-self: center; }
沒有留言:
張貼留言