Last active
November 15, 2015 22:53
-
-
Save robgolbeck/c546b941dfc1bb0596f1 to your computer and use it in GitHub Desktop.
Custom Header Template for X Theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Step 2: Style the custom header in your child theme's stylesheet | |
* Notes: | |
* a) The code below will float the logo left, content area right. | |
* b) Responsive layout kicks in at 700px - logo and content stacked and aligned center. | |
* c) Adjust as necessary for your own project. :) | |
*/ | |
/* float logo left, header content right & set vertical alignment to middle for both */ | |
.x-logobar { | |
text-align: left; | |
} | |
.your-logo, | |
.your-header-content { | |
display: inline-block; | |
vertical-align: middle; | |
width: 49%; | |
} | |
.your-header-content { | |
text-align: right; | |
width: 50.25%; | |
} | |
@media all and (max-width: 700px) { | |
/* stack & center the logo & header content */ | |
.x-logobar { | |
text-align: center; | |
} | |
.your-logo, | |
.your-header-content { | |
width: 100%; | |
text-align: center; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment