Support » Themes and Templates » [Resolved] TopNav background duplicating

[Resolved] TopNav background duplicating

  • Hi there,

    It’s been a few days already that I’m trying to find a solution for this:

    Directly under the header the background for the top menu is duplicating. I tried already for several hours in a row to get rid of it, repositioning things here and there and well… tried everything that I know about CSS (not much, guilt as charged).

    Any ideas?

    Tell me what information you guys and girls need. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • WPyogi
    Forum Moderator


    I don’t see any duplication of menus or backgrounds — you DO have two menus, right? One on the grey at the very top and one on the red below the header section?

    So not sure what you are referring to…what browser are you using? I’m on Firefox on a Mac.

    Chrome and Firefox on Windows 7.

    Yes, I do have two menus, one is for pages and other for categories. A grey one and a red one. But here is the thing, the red one, the background, for a lot of people is duplicated. You are the only one that report no duplication so far.

    So any ideas?

    Here is the TopNav CSS

    /* -------------------[ Top Navigation ]------------------- */
    #topnav {	padding: 1px 0 0;	margin: 0 auto;	background:url(images/navbg.gif) top left;	}
    #topnav .limit {
    	height: 40px;
    	margin:0 auto;
    #topnav ul {
    	height: 40px;
    	list-style: none;
    	padding: 0;
    	margin: 0 ;
    	float: left;
    #topnav ul a, #topnav ul a:link, #topnav ul a:visited {
    	display: block;
    	text-decoration: none;
    	padding: 0 10px;
    #topnav ul a:hover, #topnav ul a:active  {
    #topnav li {
    	float: left;
    	padding: 0;
    #topnav li ul {
    	position: absolute;
    	left: -999em;
    	height: auto;
    	width: 200px;
    	margin: 0;
    	border-top:1px solid #f5f5f5;
    #topnav li li {
    	border-bottom:1px solid #000;
    #topnav ul li ul a, #topnav ul li ul a:link, #topnav ul li ul a:visited {
    #topnav ul li ul a:hover, #topnav ul li ul a:active  {
    #topnav li ul ul {
    	margin: -30px 0 0 200px;
    #topnav li:hover ul ul, #topnav li:hover ul ul ul, #topnav li.sfhover ul ul, #topnav li.sfhover ul ul ul {
    	left: -999em;
    #topnav li:hover ul, #topnav li li:hover ul, #topnav li li li:hover ul, #topnav li.sfhover ul, #topnav li li.sfhover ul, #topnav li li li.sfhover ul {
    	left: auto;
    #topnav li:hover, #topnav li.sfhover {

    Here is how I solved it:

    The problem wasn’t in the CSS. The banner in the header.php file didn’t have set a width or height.

    <h1><a href="<?php bloginfo('url'); ?>/"><img src="<?php bloginfo('template_directory'); ?>/images/headlogo.png" width="1366" height="274" border="0" alt="Old Trafford Brasil" /></a></h1>

    (I put the code between backticks but it didn’t worked)

    I insert the proper size of the banner and it worked. Thanks anyway WPyogi for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] TopNav background duplicating’ is closed to new replies.