Remove header from Container

newsoul

I'm trying to get the header out of the container so that I can make the header to stretch the full width of the screen (i've been messing with it for hours without luck before realizing the container was preventing it). Here's the HTML:

</head>

<body <?php body_class(); ?>>

<div id="wrapper">  

<div id="header">

    <div class="container clearfix">

        <div id="logo">         
            <a href="<?php echo home_url(); ?>" class="logo_img">
                <img src="<?php echo $of_option['st_logo_image'] ?>" alt>
            </a>
        </div>

        <div id="navigation">
            <?php wp_nav_menu(array('menu' => 'custom_menu')); ?> 

            <?php if($of_option['st_responsive']) responsive_select_nav() ?>
        </div>        

    </div>

</div>
Shomz

You need to learn how to properly structure an HTML layout. I separated the header and put it before the container so they are independent.

#header {background: #eee; height: 50px;}
.container {background: #ccc; width: 200px; margin: auto; height: 200px;}
<div id="header">Header here</div>

<div class="container clearfix">

  <div id="logo">
    <a href="" class="logo_img">
      <img src="" alt="Logo here">
    </a>
  </div>

  <div id="navigation">
    PHP stuff here
  </div>

</div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Remove header from Activity

From Dev

Remove chkconfig header from output

From Dev

Remove chkconfig header from output

From Dev

Remove header box from IPBoard?

From Dev

Remove header style from gridview export to excel

From Dev

Android: How to remove header view from ExpandableListView?

From Dev

How to remove header and footer from particular post

From Dev

Remove margin and padding from floating table header

From Dev

How to remove header part of output from sapply

From Dev

Remove duplicate header entries from doHeaders()

From Dev

How to remove empty header from SOAP message?

From Dev

Python - Remove header and footer from docx file

From Dev

How to remove the month name from CalendarView header

From Dev

Remove padding from <figure> inside <header>

From Dev

How to remove header from particular single page

From Dev

Remove margin and padding from floating table header

From Dev

Remove Header and Footer from .docx file

From Dev

Remove xml header from C# webservice

From Dev

How to remove the month name from CalendarView header

From Dev

How to remove default header from WordPress theme?

From Dev

How to remove authorization header from request

From Dev

GPG - remove header from decrypted text

From Dev

Lua: Remove field from mail header

From Dev

remove the header and footer from the src in iframe

From Dev

Is there a way to remove a name from a Docker container?

From Dev

Remove port binding from an existing docker container

From Dev

How to remove whitespace from a div/container

From Dev

Swing remove component from container and repaint

From Dev

Remove a site from its default Firefox container

Related Related

HotTag

Archive