isaraの模写の中央揃いにならない部分です。margin:0 auto;にしても変わりませんでした
.freedom{
background-image:url("/introbottom.jpg");
background-size:cover;
height:560px;
}
.txtbox{
width:860px;
max-width: calc(100% - 40px);
margin:0 auto;
position:relative;
}
.txtbox::before,.txtbox::after{
content'';
width:50px;
height:50px;
position:absolute;
display:inline-block;
box-sizing:border-box;
}
.textbox::before{
border-top:4px solid #EAB857;
border-left:4px solid #EAB857;
top:0;
left:0;
}
.textbox::after{
border-bottom:4px solid #EAB857;
border-right:4px solid #EAB857;
bottom:0;
right:0;
}
.freedom.txtbox.txt1{
padding:30px 0;
}
</div> </div>
回答1件
あなたの回答
tips
プレビュー