Media Query を少し適用しようとしています。
メディアクエリのない CSS
blockquote {
margin: 1.5em 0;
font-family: 'Gentium Basic', Georgia, serif;
font-size: 20px;
line-height: 1.6em;
font-weight: normal;
font-style: italic;
border-left: 1px dotted;
padding: 0 0 0 25px;
left: 50%;
margin-left: -150px;
width: 650px;
}
次に適用されます:
/* larger than 800px */
@media only screen and (min-width: 801px) {
#mobileNav {
height: 0 !important;
}
}
/* 800px and smaller */
@media only screen and (max-width: 800px) {
#bannerImage {
background-attachment: scroll !important;
}
blockquote {
margin: 1.5em 0;
font-family: 'Gentium Basic', Georgia, serif;
font-size: 20px;
line-height: 1.6em;
font-weight: normal;
font-style: italic;
border-left: 1px dotted;
padding: 0 0 0 25px;
}
サイトはこちら
私がやろうとしているのは、blockquote を画面に合わせることです。現在、ページの幅が変更されたときにこれを行います。
これをしたいとき: