- This topic has 20 replies, 2 voices, and was last updated 3 years, 3 months ago by
Fernando.
-
AuthorPosts
-
January 30, 2023 at 4:56 pm #2514821
Jusung
Hello.
I added the reference link for the image I am trying to make.I want to put the menu on the top like the image.
Can you give me a clue to appraoch this?
First merging the header to put the banner image and How can I add menu like this?
January 30, 2023 at 6:29 pm #2514885Fernando Customer Support
Hi Jusung,
Is this a Secondary menu or your Primary Menu?
You can also build the through a Block Element – Hook. Hook it to
after_header.Just place GB Buttons in a Container Block and give the Container a negative margin top value.
January 30, 2023 at 7:08 pm #2514903Jusung
Can you see the page now?
I merged the header and made an elements block(after header)
For the button, I gave class and give negative margin but it didn’t work.the 50% of the button needs to be raised
January 30, 2023 at 7:19 pm #2514915Fernando Customer Support
How did you add the negative margin?
Can you add it through the spacing settings?: https://docs.generateblocks.com/article/container-overview/#spacing
January 30, 2023 at 7:27 pm #2514924Jusung
I added class to the button and on the addtional CSS, I added it, but nothing happened. so I deleted it.
January 30, 2023 at 7:33 pm #2514927Fernando Customer Support
Can you add it through the Container Block settings as mentioned? Let us know how it goes.
January 30, 2023 at 9:54 pm #2515002Jusung
It works. When the screen is reduced the size of menu should be redueced too.
Do I need to set the padding of buttons seperately?
like on mobile, on table, on PC?January 30, 2023 at 10:03 pm #2515007Jusung
I gave the padding of buttons as %, which works.
However, the location of parent button is not static..
January 30, 2023 at 10:37 pm #2515032Fernando Customer Support
Yes, you can set different Paddings for different views. That should work. Using
%works too.Can you expound a bit more on what this means “the location of parent button is not static..”?
January 31, 2023 at 12:11 am #2515109Jusung
the negative margin. it is not static when the size of screen changes.
I want to make it static, but when I give % padding, it is not static.for example, I wanna put the menu in the center exactly always.
January 31, 2023 at 12:14 am #2515111Fernando Customer Support
I see. Can you add the Container Block for the menu inside to Container Block for the Header?
We can do it through custom CSS to position it exactly at 50% horizontally.
January 31, 2023 at 12:37 am #2515117Jusung
I think I have added it, but the page is broken now.
January 31, 2023 at 12:44 am #2515123Fernando Customer Support
Try adding this through Appearance > Customize > Additional CSS:
.gb-container.gb-container-72c0591f { position: absolute; left: 50%; bottom: 0px; transform: translate(-50%, 50%); width: 100%; } .gb-container.gb-container-72c0591f .gb-button-wrapper-2d692b58 { display: flex; flex-wrap: wrap; } .gb-container.gb-container-763eec58 > .gb-inside-container { position: static; } .gb-container.gb-container-763eec58 { position: relative; }January 31, 2023 at 3:34 am #2515307Jusung
It works. but I have no idea how I can adjust the size of button.
I gave padding as % So, the size of button can be reduced when the screen size is reduced.
But giving padding doesn’t work..January 31, 2023 at 6:01 am #2515424 -
AuthorPosts
- You must be logged in to reply to this topic.