• Resolved campdrunkisme

    (@campdrunkisme)


    Hello everybody,

    Does anyone know how I make the header full width even though I have a costume background? Right now it looks like this: pic1

    And I want this: pic2

    I’m not sure how to do it since the header div is inside of the body-core div?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter campdrunkisme

    (@campdrunkisme)

    Anyone? Maybe something with position? I’ve never really gotten the hang of that…

    Thread Starter campdrunkisme

    (@campdrunkisme)

    Ok, easiest solution i came up with (not a super pretty one but still, it’s something):

    #header {
    	background: #000;
    	height: 8em; /*or whatever height you want*/
    	position: absolute;
    	left: 0;
    	width: 100%;
    	z-index: 999999;
    }
    
    #slider-core {
    	margin-top: 8em; /*the same as the height of your header*/
    }

    It gets a little wonky when you make the screen smaller but I don’t have time for that right now ??

    Thread Starter campdrunkisme

    (@campdrunkisme)

    Oh, forgot this

    #content {
    margin-top: 8em; /*the same as the height of your header*/
    }

    Hi campdrunkisme,

    where do I add that code? I mean in which document?

    #header {
    	background: #000;
    	height: 8em; /*or whatever height you want*/
    	position: absolute;
    	left: 0;
    	width: 100%;
    	z-index: 999999;
    }
    
    #slider-core {
    	margin-top: 8em; /*the same as the height of your header*/
    }
    
    #content {
    margin-top: 8em; /*the same as the height of your header*/
    }
    Thread Starter campdrunkisme

    (@campdrunkisme)

    I added it in my child css but if you don’t have one you can add it in the Custom CSS box in Apperance -> Theme Options -> General Settings

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Full width header with costum background’ is closed to new replies.