Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1274084
    jessie l
    Participant

    i want my sub menu and child sub menu to be align in the right

    i tried adding css code
    float: right !important; but none are working.
    i see it works on inspect element but when applied to the site nothing happen.

    see screenshots. that is what i want to happen

    http://chiselblue.com/gpartnersnew/

    #1274170
    Prasant Rai
    Moderator

    Hello Jessie,

    Thanks for writing in!

    You can add this under Custom > CSS in the Customizer:

    .desktop ul.sub-menu {
        left: 20px !important;
    }

    Thanks.

    #1274235
    jessie l
    Participant
    This reply has been marked as private.
    #1274247
    Rupok
    Member

    Hi there,

    Perhaps we didn’t get you properly. Would you clarify with a screenshot that what you exactly referring by right align? Do you want to align the text or whole submenu? A screenshot would help I guess.

    #1274271
    jessie l
    Participant

    i want to align the whole sub menu in the right

    #1274279
    Rupok
    Member

    Hi there,

    Thanks for writing back. Let’s add this CSS :

    .desktop .sub-menu {
      left: 0 !important;
    }
    
    .desktop .sub-menu .sub-menu {
      left: 100% !important;
    }

    Hope this helps.

    #1274280
    jessie l
    Participant

    did you try this out? because this still not work for me 🙁

    #1274287
    Rupok
    Member

    Hi there,

    I have tested the code on your site so it should work fine. I guess your previous code has some issue, perhaps not closed properly. Make sure to close them properly.

    Thanks!

    #1274288
    Friech
    Moderator

    Hi There,

    I just check Rupok’s code and that did work, it did move the child sub-menu to the right.

    Here’s the code to text-align the sub menu items to the right.

    .desktop .sub-menu li>a {
    	text-align: right;
    }

    Add the code on top of your Custom CSS, then check your entire custom CSS here: http://csslint.net/ to see what the issue.

    Thanks.

    #1274304
    jessie l
    Participant

    i guess you are right. there is a conflict on my old css code. i remove all the css code and put your code and it’s working.
    thanks man. really appreciated 🙂

    #1274307
    Paul R
    Moderator

    You’re welcome! 🙂

  • <script> jQuery(function($){ $("#no-reply-1274084 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>