Kunena Menu
Part 2 - Centering the Main headers
12 years 3 months ago - 12 years 3 months ago #21185
by rowby
Part 2 - Centering the Main headers was created by rowby
Hello
I am seeing if there is a way to center my four headers one hundred percent on my site, using css. test page
I posted a question on a css forum about how this could be done. Here is a css expert's response:
So my question here, CEd, is there a setting within Maximenu CK or the parameters to "separate the Li from the design aspect".
At the same time I am thinking if I should even try to center the items one hundred percent. I am looking at www.joomlack.fr/ at your megamenu, which uses negative margins to move the submenus to the left, lining them up with the left of the content area.
If I try to center my four main menus with percentages, wouldn't I have a problem using negative numbers to line up the submenu like you have at www.joomlack.fr/
So before I even try centering those 4 menus 100 percent I would like your thoughts and opinion... I might be better off aligning the buttons "left"??????? And forget about centering.....????
Thanks
Rowby
I am seeing if there is a way to center my four headers one hundred percent on my site, using css. test page
I posted a question on a css forum about how this could be done. Here is a css expert's response:
Not really going to work with your design
You would have to separate the LI from the design aspect of the buttons so you can give them a width of 25% and not worry about padding/margins
And using a box sizing would help distribute them better
So my question here, CEd, is there a setting within Maximenu CK or the parameters to "separate the Li from the design aspect".
At the same time I am thinking if I should even try to center the items one hundred percent. I am looking at www.joomlack.fr/ at your megamenu, which uses negative margins to move the submenus to the left, lining them up with the left of the content area.
If I try to center my four main menus with percentages, wouldn't I have a problem using negative numbers to line up the submenu like you have at www.joomlack.fr/
So before I even try centering those 4 menus 100 percent I would like your thoughts and opinion... I might be better off aligning the buttons "left"??????? And forget about centering.....????
Thanks
Rowby
Last edit: 12 years 3 months ago by rowby.
Please Log in or Create an account to join the conversation.
12 years 3 months ago #21216
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Part 2 - Centering the Main headers
Hi
try to add this into your css :
CEd
try to add this into your css :
Code:
div#Maximenu_NEW_GRANDE ul.maximenuck li.maximenuck.level1 {
width:21.98%;
}
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
12 years 3 months ago - 12 years 3 months ago #21218
by rowby
Replied by rowby on topic Part 2 - Centering the Main headers
Hello
Thanks. I think it's working. I have to make some fine tuning, but it is looking good so far!
...Rowby
Thanks. I think it's working. I have to make some fine tuning, but it is looking good so far!
...Rowby
Last edit: 12 years 3 months ago by rowby.
Please Log in or Create an account to join the conversation.
12 years 3 months ago #21219
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Part 2 - Centering the Main headers
play with the width value, that's right in my tests I have removed the margins also. Set about 21% and see
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
12 years 3 months ago #21220
by rowby
Replied by rowby on topic Part 2 - Centering the Main headers
Yes. I think it is working. Will try your fine tuning.
Please Log in or Create an account to join the conversation.
12 years 3 months ago #21221
by rowby
Replied by rowby on topic Part 2 - Centering the Main headers
Hi
I am almost there hopefully
...except for a little bit "sticking out" on the right that I can't "get rid of".
Just as a test I tried this in firebug
And got this result. I am seeing if there is a way to hide the right thing sticking out via css.
I am almost there hopefully
Code:
div#Maximenu_NEW_GRANDE ul.maximenuck li.maximenuck.level1 {
width:22.0%;
}
...except for a little bit "sticking out" on the right that I can't "get rid of".
Just as a test I tried this in firebug
Code:
As a test I tried this in Firebug:
div#Maximenu_NEW_GRANDE {
font-size: 14px;
line-height: 21px;
margin-right: -20px;
text-align: left;
}
And got this result. I am seeing if there is a way to hide the right thing sticking out via css.
Please Log in or Create an account to join the conversation.
Time to create page: 0.234 seconds




