WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Align sub-menu to the left (12 posts)

  1. bolamuyis
    Member
    Posted 1 year ago #

    I've aligned my main navigation to the right as such my sub-menu display (the last one listed) does not fit on the page and spill to the side. Is there a way to get the sub-menu to align left instead of the default which is right. I've spent hours in the css trying to make the change but have failed. Here's an image clip off the problem.

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    What CSS have you tried?

  3. bolamuyis
    Member
    Posted 1 year ago #

    style.css

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Which styles?

  5. bolamuyis
    Member
    Posted 1 year ago #

    blog/wp-content/themes/bfaphoto-wp/styles.css.

    This is the main css that controls most of the site. Am still developing locally.

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Do you have access to the CSS within style.css?

  7. bolamuyis
    Member
    Posted 1 year ago #

    am not sure I follow but I've made several edits to the "style.css" to get to where am at now. So yes.

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    Which edits have you made, unsuccessfully, to align the sub-menu left?

  9. bolamuyis
    Member
    Posted 1 year ago #

    Mostly I've been adding float left to many of the classes properties. However there is a class called "sub-menu" which I suspect might be what I need to adjust but I cannot locate it anywhere.

  10. Andrew
    Forum Moderator
    Posted 1 year ago #

    Can you use hierarchical HTML structure of lists for selectors, unique to sub menus?
    CSS Exampled;

    ul ul li {
     float: left;
    }
  11. bolamuyis
    Member
    Posted 1 year ago #

    I could not locate
    ul ul li

  12. bolamuyis
    Member
    Posted 1 year ago #

    Got it....

    I changed
    #access ul ul {
    left: 0px;
    }

    to

    #access ul ul {
    right: 0px;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags