resposive header image
-
Im struggling trying to create responsive header image in a 2011 child theme.
https://www.walkercreekmedia.com/wp/
Using the css below I can’t get the background to align to the bottom of the div in safari. It stays up at the top of the div and so as you make the view port smaller the image re-sizes but floats up.
Additionally I cant get the background to display at all in FF without an absolute height ( which is why i was trying to background-position: center bottom ??
Ive tried height:100% and overflow:hidden; and in both cases the #branding div collapses and the header is gone.
Any thoughts appreciated. Im stuck
<header id=”branding” role=”banner”>
<div id=”socialmedia” >
<?php echo do_shortcode(‘[iire_social_icons]’);?>
</div>
</header>#branding {
background-image:url(images/walker-creek-banner.gif);
background-repeat:no-repeat;
background-position: center bottom ;
background-color: #DAD7D2;
width:100%;
height:224px;
position:relative;
}#socialmedia{
position:absolute;
bottom:60%;
right:10px;
z-index: 9999;
}
- The topic ‘resposive header image’ is closed to new replies.