WordPress.org

Ready to get started?Download WordPress

Forums

Autofit Menu (2 posts)

  1. Center for STEM
    Member
    Posted 10 months ago #

    I am trying to set the menu bar to adjust to 20% page right - it is currently set to a fixed number of pixels from the edge: http://www.stem.neu.edu

    Any help is so very greatly appreciated!

  2. paulwpxp
    Font hero
    Posted 10 months ago #

    In style.css, remove margin-left and margin-right from this

    ul.sf-menu {
    	background-color: #CC0000;
    	border-right: medium none;
    	float: left;
    	margin-left: 172px;
    	margin-right: 25px;
    }

    and put this in

    .menu {
    	width: 925px;
    }

    Or just put this in the Custom CSS option.

    ul.sf-menu { margin-left:0; margin-right:0; }
    .menu { width: 925px; }

Reply

You must log in to post.

About this Topic

Tags