- This topic has 16 replies, 3 voices, and was last updated 3 years ago by
Nicolas.
-
AuthorPosts
-
December 30, 2022 at 2:48 am #2477718
Nicolas
Hello,
I’m trying to design such a table layout with GP and GB.
This is what I have for now.
My questions:
1/ How do I correct the first cell of the header? As you can see, the background color does not apply on the whole cell.
2/ See the extra container circled in red here? Is it usefully to make sure the layout of the 2 buttons is well managed? Or useless? Should I keep it or remove it?
3/ Can you see the “Meilleur choix” ribbon? How to replicate this with GP / GB?
Do you see anything else worth mentionning?
Thank you and have a great day.
December 30, 2022 at 7:01 am #2477892David
StaffCustomer SupportHi there,
1. select the Grid Block and make sure the Vertical Alignment is set to Default.
2. Its not really required, each Buttons block can have multiple Button Blocks within them.
3. That would require Custom CSS
Other things worth mentioning — you really need to first consider how this layout will work on mobile….
December 31, 2022 at 1:35 pm #2479157Nicolas
1. The defaut alignement fixed the background color issue.
2.Thanks.
3. Can you help with this?
you really need to first consider how this layout will work on mobile….
Do you mean for 3? Or for the overall grid?
4. How can I reduce the vertical space between the PREMIUM word and the bottom border? I would like to reduce the height of the Header of the bale as well as have the Column titles being vertically centered in the cell.
January 1, 2023 at 6:35 am #2479550David
StaffCustomer Supportyou really need to first consider how this layout will work on mobile…
For the overall grid.
Theres no point doing a lot of work on making the desktop look right, and then realising the structure does not work for mobile. You need to think mobile first, then work out how to make it work on desktop.January 1, 2023 at 9:46 am #2479841Nicolas
4. How can I reduce the vertical space between the PREMIUM word and the bottom border? I would like to reduce the height of the Header of the bale as well as have the Column titles being vertically centered in the cell.
Got your point but I’m not how I can livre without tables.
This is the best layout to create comparisons / benchmark and structure the related data.January 1, 2023 at 7:04 pm #2480098Fernando Customer Support
Hi Nicolas,
4. You’re using a WP Paragraph Block which has a default bottom margin. You can replace this with a GB Headline Block and turn it into a Paragraph to control the spacing.
How would the table look on mobile? Would it look exactly the same as it does on the Desktop?
January 6, 2023 at 3:48 am #2485675Nicolas
Hi Fernando,
Done. See URL in PI field.
Regarding the Ribbon, do you have a sweet option or even an alternative that would be so “nice” and effective to let the user know what is the best choice. Ribbons are effective marketing tools.
Regards
January 6, 2023 at 5:28 am #2485755David
StaffCustomer SupportThe basics are to use absolute position and transform rotate.
1. Add this CSS:
.has-ribbon { position: relative; } .is-ribbon { position: absolute; transform: rotate(-45deg); }2. Add a Container Block with a CSS Class of:
has-ribbon
Give it some top padding, enough to accommodate the ribbon.3. Inside the container add a Headline block for your ribbon, and give it a CSS class of:
is-ribbonJanuary 6, 2023 at 6:43 am #2485836Nicolas
Hello,
Please the PI field.
I added what you said but look at the result: “1er choix” should be the ribbon for the Qualité PREMIUM “cell”.1/ How to make it look like this.
2/ Also, as you can see on the URL shared, there are 2 similar, draft tables on the page. The first is done with GP and the second one with another plugin. What is the best way for me to add vertical border to the first table (like you can see them on the second table)?
Thanks
January 7, 2023 at 7:24 am #2486957David
StaffCustomer SupportPlease be mindful that this forum is for support, not requests for custom development, so as much as we like to assist users with achieving 100% of their designs it is not always within our capacity to assist.
This is the most i can offer in regards to the Ribbon:
1. Add this CSS:
.has-ribbon { position: relative; } .ribbon { width: 150px; height: 150px; overflow: hidden; position: absolute; top: -10px; left: -10px; } .ribbon::before, .ribbon::after { position: absolute; content: ''; display: block; border-top-color: transparent; border-left-color: transparent; } .ribbon mark { position: absolute; display: block; width: 225px; padding: 5px 0; background-color: #ccc; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); text-align: center; right: -15px; top: 30px; transform: rotate(-45deg); }2. Add a Container Block with a CSS Class of: has-ribbon
Give it some top padding, enough to accommodate the ribbon.3. Inside the container add a Headline block for your ribbon, and give it a CSS class of:
ribbon
Then higlight the text in the headline and from the drop menu in the toolbar, select the 2nd Higlight option.January 7, 2023 at 9:21 am #2487187Nicolas
Thank you David. Your support is over top-notch.
Does not work. Not sure what I missed.
By 2nd highlight option, do you mean the one I circled in red? Surbrillance means highlight in French.January 8, 2023 at 4:53 am #2487746David
StaffCustomer SupportIt is working, But this CSS:
..has-ribbon { position:relative }You have 2x
.– remove one so it is:.has-ribbon { position:relative }January 8, 2023 at 11:57 am #2488167Nicolas
My bad, thank you.
This is how it looks.
How to avoid the ribbon going out of its cell and “eating”/going over the container below it, that is, the container of the image?I mean, how to have the ribbon affect only ONE row/container?
January 8, 2023 at 5:41 pm #2488293Fernando Customer Support
In these codes provided by David:
.ribbon { width: 150px; height: 150px; overflow: hidden; position: absolute; top: -10px; left: -10px; } .ribbon mark { position: absolute; display: block; width: 225px; padding: 5px 0; background-color: #ccc; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); text-align: center; right: -15px; top: 30px; transform: rotate(-45deg); }You have to find the correct and preferred width and height values. As of now, they’re set to 150, 150, and 225px. Play around with these values to achieve your preferred look.
January 12, 2023 at 10:51 am #2493278Nicolas
Got you, thanx.
But I now have an issue with the text being not fully visible and centered on the ribbon. I tried playing with a few settings but I was not successful.
-
AuthorPosts
- You must be logged in to reply to this topic.