Tab Menu / Posts /

Force menu not to center

17
I build the Tab Menu with width:80%. I found it is always in the center of the containing block. How can I force it to the left or to the right?
Jim  4 years ago   viewed: 6079    

1 Answer

1

For the alignment of the whole menu that does not occupy the entire width of its containing block, it will by default be centered. You can alter it afterwards by editing the downloaded CSS file: change the following centering specification:

ul#tabmenu { margin: 0 auto; }

to left alignment:
ul#tabmenu { margin: 0; }

or to right alignment:
ul#tabmenu { margin-left: auto; margin-right: 0;}

Milo   4 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question:
    • If your question is related to the Tab Menu, click:

      Ask new question: Tab Menu
    • Otherwise navigate to one of the following forum categories, and post your question there.

      ##