0

その下にある DIV の上に DIV を表示する方法がわかりません。つまり、私の Web ページにはヘッドがあり、DIV は左に、DIV は右にフロートします。その下にメニューバーがあります。私は多くのメニュー項目を持っていないので、右に浮いてメニュー バーに部分的に重なる DIV の画像が必要です。絶対配置で動作させることはできますが、それは理想的ではありません。先に進んでメニューバーの幅を変更しましたが、それは私が望むものを得るための一時的な修正です. 考え?

www.sacspartans.org

<div id="page" class="hfeed site">
<header id="masthead" class="site-header" role="banner">
    <div id="header-left">      
            <hgroup>
        <h1 class="site-title">
            <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
            <img src="http://sacspartans.org/wp-        
                             content/uploads/2013/05/banner.png" alt="SacSpartans" 
                             title="SacSpartans" border="0" />
            </a>
        </h1>
        <h2 class="site-description"><?php bloginfo( 'description' ); ?> 
                    </h2>
            </hgroup>
    </div>  
    <div id="header-right"> 
        <img src="http://sacspartans.org/wp-
                    content/uploads/2013/05/california1.png" alt="MSU Alumni Club of 
                    the Sacramento Valley" title="MSU Alumni Club of the Sacramento  
                    Valley" border="0" />
    </div>
    <div id="navigation-bar">
    <nav id="site-navigation" class="main-navigation" role="navigation">
        <h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
        <a class="assistive-text" href="#content" title="<?php esc_attr_e( 
                    'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to 
                    content', 'twentytwelve' ); ?></a>
        <?php wp_nav_menu( array( 'theme_location' => 'primary', 
                    'menu_class' => 'nav-menu' ) ); ?>
    </nav>
    </div>

そして今CSS情報。

/* Header */
#header-left {
float: left;
}

#header-right {
float: right;
margin-top: 0;
}

#navigation-bar {
width: 575px;
}
4

0 に答える 0