URGENT Centering menu items-Customized Delicacy Theme.

  • Unknown's avatar

    I just need to center the menu items. I don’t want the color changed or anything. Just the position. I found a few answers but none have worked or I end up with little “wings” in the middle of the page. PLEASE HELP!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    There is no such thing as your issue being more urgent than the issues in threads that were posted before this one was posted. Please be patient while waiting for assistance.

  • Unknown's avatar

    I am patient. However, I would like to get the sight published for my organization next week, it is a pressing issue. I will look forward to your astute guidance.

  • Unknown's avatar
  • Unknown's avatar

    I do not provide CSS editing help. I answer only general support forum questions.

  • Unknown's avatar

    Thanks. I look forward to any answer you have. Do you have a better resource or someone that could provide guidance? Googling it hasn’t helped.

  • Unknown's avatar
  • Unknown's avatar

    Centering the menu items in the Delicacy theme is harder than it looks. Here are a couple examples I came up with:

    Example 1

    This is just for illustration so you can see what’s happening. Here is a basic example that will center the existing menu. As you can see, more work than this needs to be done:

    #navigation > .main-menu {
    	text-align: center;
    }
    
    #navigation > .main-menu > ul {
    	float: none;
    	width: auto;
    }

    Example 2

    If you wanted to try to keep as much of the gradient effect as possible, then this example may work. The ribbon edges won’t look exactly the same as they did before, but they’re close:

    #navigation {
    	background-color: #cc0934;
    }
    
    #navigation > .main-menu {
    	background-color: transparent;
    	background: -moz-linear-gradient( top, rgba( 0, 0, 0, 0 ) 0%, rgba( 0, 0, 0, 0.3 ) 100% );
    	background: -webkit-gradient( linear, left top, left bottom, color-stop( 0%, rgba( 0, 0, 0, 0 ) ), color-stop( 100%, rgba( 0, 0, 0, 0.3 ) ) );
    	background-image: -webkit-linear-gradient( top, rgba( 0, 0, 0, 0 ) 0%, rgba( 0, 0, 0, 0.3 ) 100% );
    	background: -o-linear-gradient( top, rgba( 0, 0, 0, 0 ) 0%, rgba( 0, 0, 0, 0.3 ) 100% );
    	background: -ms-linear-gradient( top, rgba( 0, 0, 0, 0 ) 0%, rgba( 0, 0, 0, 0.3 ) 100% );
    	background: linear-gradient( to bottom, rgba( 0, 0, 0, 0 ) 0%, rgba( 0, 0, 0, 0.3 ) 100% );
    	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dc0a39', endColorstr='#b50a2e', GradientType=0 );
    	text-align: center;
    }
    
    #navigation > .main-menu > ul {
    	background: none;
    	float: none;
    	width: auto;
    }
    
    #navigation .main-menu > ul:before,
    #navigation .main-menu > ul:after {
    	border-top: none;
    }

    Example 3

    This one is simpler, it replaces the main menu background with a solid color instead of a gradient:

    #navigation > .main-menu {
    	text-align: center;
    }
    
    #navigation > .main-menu > ul {
    	background: none;
    	float: none;
    	width: auto;
    }
    
    #navigation .main-menu > ul:before,
    #navigation .main-menu > ul:after {
    	border-top: none;
    }

    Try out each example in the live preview using the Appearance > Customize > CSS editor and pick the one you like best.

  • The topic ‘URGENT Centering menu items-Customized Delicacy Theme.’ is closed to new replies.