Tagged: cornerstone
-
AuthorPosts
-
January 9, 2017 at 4:41 pm #1323047
Okay, here’s one for you.. I’m trying to recreate this Wix site in X theme: http://www.vitalandgreen.com/
Notice the rounded corners on the graphics/boxes. How would you recommend creating these in Cornerstone? I don’t want a slider on the home page, just going to use one large image and the text on brown on the right and need to create all 4 service boxes with the green background.
Here is the site so far: http://vitalgreen.newskywebsites.com/ (using latest version of WP, X, Cornerstone, Renew stack with Child theme).
Not sure how to get the large top graphic so the image and brown text box are same height on any screen size… tried “flexmethod” but that didn’t do the trick.
And on the 4 green service boxes, I added border-radius: 10px; to the column, but that rounds the bottom of the photo too. I need to only round that on two sides…?
See screenshots.
Thanks so much!
dawnJanuary 9, 2017 at 4:43 pm #1323052This reply has been marked as private.January 9, 2017 at 11:40 pm #1323448Hi there,
Please enable ‘Marginless columns’ option for section #1 to have equal columns.
Change column and image’s inline CSS toborder-radius: 0 0 10px 10px;
.Hope it helps.
January 12, 2017 at 5:09 pm #1327882Thank you! The radius trick worked, but the first large image is still not forcing to same height for image and brown box. See video here: http://screencast-o-matic.com/watch/cbVl0iQCcb
Not sure how to get the large top graphic so the image and brown text box are same height on any screen size… tried “flexmethod” but that didn’t do the trick.
I’m hoping to avoid using a slider if possible…? But it has to be responsive…
Thanks!
DawnJanuary 12, 2017 at 10:55 pm #1328284Hello There,
Thanks for updating in! Your flexmethod will not work because there was no code that supports that class. To resolve your issue, you can make use of this code instead:
.flexmethod .x-column > img{ visibility: hidden; } .flexmethod .x-column:first-child, .flexmethod .x-column:nth-child(1) { background-image: url(http://vitalgreen.newskywebsites.com/wp-content/uploads/2017/01/Lawn-Care-Home-Graphic.jpg); background-size: cover; background-position: top right; }
We would loved to know if this has work for you. Thank you.
January 13, 2017 at 8:25 am #1328768You did it!! Thank you!! If anyone is following this, I just had to change the other “flexmethod” class to “flexmethod2” for instances where I didn’t want this new code applied. Worked like a charm.
One last tweak… Is there a way to make this row or section wrap to 2 rows earlier? For example, when the screen is around tablet size, it looks weird because the brown box is so long and narrow.
See attached screenshot.
Thanks so much!
dawnJanuary 13, 2017 at 11:40 am #1328990Hi There,
Try adding the following code to Appereance > Customizer > Custom > CSS
@media (max-width: 969px ) { #x-section-1 .x-section .x-container.marginless-columns .x-column.x-1-3 { width: 33.33333%; width: 100%; } }
Let us know how it goes,
Joao
January 13, 2017 at 4:54 pm #1329265I’m afraid that did not change anything. 🙁
January 13, 2017 at 10:39 pm #1329535Hi There,
Add this code instead.
@media (max-width: 979px) { .flexmethod .x-column.x-sm { display: block !important; width: 100% !important; } }
Hope it helps, Cheers!
January 16, 2017 at 3:51 pm #1332649Absolutely perfect! Thank so much!
DawnJanuary 16, 2017 at 6:52 pm #1332877Happy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts