Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DalavanCloud/3168bbe73c5504c17b478de1c7a10341 to your computer and use it in GitHub Desktop.
Save DalavanCloud/3168bbe73c5504c17b478de1c7a10341 to your computer and use it in GitHub Desktop.
This CSS code is for a DWB screencast where I show how to make your Logo Image responsive, without the need for multiple images.
/* HTML5 5th @media query trigger point */
.site-header {
min-height: 80px;
}
.header-image .site-header .wrap .title-area {
width: 400px;
height: 80px;
background-size: 400px 80px;
}
/* HTML5 6th @media query trigger point */
.site-header {
min-height: 60px;
}
.header-image .site-header .wrap .title-area {
width: 300px;
height: 60px;
background-size: 300px 60px;
}
/* Pre-HTML5 5th @media query trigger point */
#header {
min-height: 80px;
}
.header-image #header .wrap #title-area {
width: 400px;
height: 80px;
background-size: 400px 80px;
}
/* Pre-HTML5 6th @media query trigger point */
#header {
min-height: 60px;
}
.header-image #header .wrap #title-area {
width: 300px;
height: 60px;
background-size: 300px 60px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment