Hey there,
I've been trying to build a wordpress site from scratch with a simple grid taken from treehouse. I want to have a vertical "header", so a sidebar that contains the nav-bar and so on. Yet I'm not successful in achieving the "header" to get 100% of the height of the site. I've put the container to 100% height and also the grid-3 class, which both hold the "header"
Here's the css for the "header" or "sidebar".
header {
width: 23.5%; /*235px*/
max-width: 235px;
height: 100%;
background-color: #f7d846;
padding-top:80px;
padding-left:0px;
float: left;
}
Here's also a link to the page, http://marielaveau.se/wordpress/testar/ . As you se the yellow header stops after a few 100% and the content (#contentwrapper) with the text just continuos below. I want the #header to take up 23.5% of the width but 100% in height of the whole browser window. Then I want the #contentwrapper to take up 70% of the width, to the RIGHT of the "header"/"sidebar".
It works to put the #header div to position:fixed; The problem is that this results in that the contentwrapper appears underneath the #header, aligned to the very left of the page.
Could it have anything to do with the way of wordpress pages? Do I have to include the sidebar in every single page for it to work? Is the header.php in wordpress not including 100% of the browser-window?
Help anyone?