少し前に、「Flex boxのレシポンシブのbox内のテキストの動きについて」質問したのですがブレークポイントmax-width:767pxの時の.hed-3のテキストの動きが逆になってしまい改善できません。どなたか教えてください。※画面がPCの時は、hed-3の文字位置は右寄りスマホ時は左寄りにしたいのですが?
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <title></title> <style> <!-- .inner{ display: -webkit-flex; display: flex; padding:0; width:100%; } .hed-1 { flex-basis: 35%; } .hed-2 { flex-basis: 30%; display:flex; -webkit-align-items: center; -webkit-justify-content: center; justify-content: center; } .hed-3 { flex-basis: 35%; justify-content: flex-end; }@media screen and (max-width:767px) {
.inner{
display: block;
}
.inner > div{
width: 100%;
}
.hed-3 {
display:flex;
justify-content: flex-start;
}
}
-->
</style>
回答1件
あなたの回答
tips
プレビュー