I've been googling up and down trying to find a solution but I really need some personal help. I'm trying to create a responsive header made up of 4 parts:
- The header BG
- Welcome tag on the left
- Logo in the center
- Social icons on the right
Here is a copy of the local version i'm working on: http://jaredbrandjes.co.za/joomla/test/
The header bg is 1920 wide and I've flipped it and duplicated it and made it repeat-x for any bigger screens. It only needs to scale a bit when the width is reduced to less than 500px. About 70% of its size should do the trick but I'm not sure how to do this.
This is the code i've inserted into the index.php to create my header bg:
<div style="background-image:url(/jaredbrandjes.co.za/images/template/headerbar.png); overflow:hidden; background-repeat:repeat-x;height: 366px;position: absolute;width: 100%;"></div>
This is my current code for elements 2,3,4:
<div class="gantry-img"><span class="gantry-img" style="text-align: left;"><img style="float: left;" src="images/template/header_welcometag.png" alt="" /></span> <span class="gantry-img" style="text-align: center;"><img style="display: block; margin-left: auto; margin-right: auto;" src="images/template/header_logo.png" alt="" /></span> <span class="gantry-img" style="text-align: right;"><img style="float: right;" src="images/template/header_social.png" alt="" /></span></div>
I'm trying to get the elements in a row first of all with the social icons vertically center of the logo and logo horizontally center of the page and not just the space to the right of the welcome tag like it is at the moment. Then, in terms of responsiveness, I would like the logo to remain absolutely center as the width reduces with the welcome tag on the left becoming smaller to fit and the social icons to fall beneath and centered. I hope this makes sense.
I'm using the rocket theme template, Hadron and joomla to try build my site. The header must expand the full way of the browser and must be able to respond to any screen size. I know gantry has some of these tools built in but I have no idea on how to incorporate them. Any help for any of my problems would be greatly appreciated ^_^
Thanks a million!
Here is an image of my site concept:
