Skip to content

Instantly share code, notes, and snippets.

@AntoniosHadji
Created August 21, 2012 03:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntoniosHadji/3411314 to your computer and use it in GitHub Desktop.
Save AntoniosHadji/3411314 to your computer and use it in GitHub Desktop.
Genesis Sample Child theme - responsive header image and header area
/*in this section of code */
@media only screen and (max-width: 600px) {
/* I added this code block */
#header {
background-size: contain !important;
min-height: 100%;
overflow-y:hidden;
}
/* I modified the code block below to show height as 100% instead of 100px */
/* Image Header - Partial Width
------------------------------------------------------------ */
.header-image #title-area,
.header-image #title,
.header-image #title a {
display: block;
float: left;
height: 100%;
overflow: hidden;
padding: 0;
text-indent: -9999px;
width: 400px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment