• Hello everyone

    I’m currently working on my 4semester projekt and I can’t seem to stlye me menu.

    This is my website so far simonnissen.dk

    CSS

    #access {
    	width: 940px;
    	height: 28px;
    	padding: 0px;
    	position: absolute;
    	left: 200px;
    	bottom: 0px;
    	background: #303b3e;
    }
    
    #access li {
    	display: inline;
    }
    
    #access li a {
    	font-family:Arial;
    	font-size:14px;
    	text-decoration: none;
    	float:left;
    	margin-right: 10px;
    	padding: 6px 14px;
    	background-color: #333333;
    	color:#ffffff;
    	border-top: 1px solid #444;
    	border-right: 1px solid #444;
    	border-left: 1px solid #444;
    	-webkit-border-top-left-radius: 5px;
    	-webkit-border-top-right-radius: 5px;
    	-moz-border-radius-topleft: 5px;
    	-moz-border-radius-topright: 5px;
    	border-top-left-radius: 5px;
    	border-top-right-radius: 5px;
    }
    
    #access li a:hover {
    	background-color:#9B1C26;
    }

    Header.php

    <div id="top">
    	<div id="topcontainer">
    		<header>
    		<a>/"> <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" /> </a>
    		</header>
    		<strong><nav id="access" role="navigation">
                    	<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'access' ) ); ?>
    		</nav></strong>
    	</div
    </div>

    Functions.php

    <?php register_nav_menu( 'Access', 'Access');?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

  • The topic ‘wp_nav_menu won't read CSS’ is closed to new replies.