
-
AuthorPosts
-
March 16, 2018 at 6:55 am #927956
Hi, this is my first time building website, I am trying to do a simple one pager where the text are centered and scale down when view in mobile .
problem 1) when my page is viewed in mobile, the format of the pictures change and the content font size stay the same. How do I ensure they stay the same just scale down?
Problem 2) I am trying to have a masonry structured gallery of 3 pictures in a section oriented in a way where the left or right picture is the full length where the 2 pictures beside it has the total height of the vertical picture.I’ve linked an example of what I am trying to achieve as a sample, I appreciate all the help possible.
Thank You
Janson
-
This topic was modified 6 years, 12 months ago by
hondacbr26.
March 18, 2018 at 3:08 am #928598Anyone?
March 19, 2018 at 5:34 am #928866Hi,
Thank you for using Enfold.
1.) The site looks responsive (screenshot: https://imgur.com/a/kTrDR). Could you provide a screenshot of the issue?
2.) In the “jaymiron” site, the gallery items’ width and height were defined manually. This is the html tag.
<article class="cf gallery-styles gallery-style-3 col-lg-12"> <figure class="col left "> <div class="bg-cover img-link lazy-load desktop-device" data-original="https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-42-1200x800.jpg" style="background-image:url(https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-42-1200x800.jpg);"></div></figure> <figure class="col left "> <div class="bg-cover img-link lazy-load desktop-device" data-original="https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-43-1200x800.jpg" style="background-image:url(https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-43-1200x800.jpg);"></div></figure> <figure class="col left "> <div class="bg-cover img-link lazy-load desktop-device" data-original="https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-44-1200x800.jpg" style="background-image:url(https://www.jaymiron.com/wp-content/uploads/2015/05/Harookz-JMF-44-1200x800.jpg);"></div></figure> </article>
And the css code.
.gallery-style-3 figure:nth-child(1), .gallery-style-right-3 figure:nth-child(1) { width: 32%; } .gallery-style-right-3 figure:nth-child(2), .gallery-style-right-3 figure:nth-child(3), .gallery-style-3 figure:nth-child(2), .gallery-style-3 figure:nth-child(3) { width: 66%; } /*-------------------------------------------------------------------- Advanced galleries fixed heights and margin --------------------------------------------------------------------*/ .gallery-style-right-3 figure:nth-child(2), .gallery-style-3 figure:nth-child(2) { margin-bottom: 26px; } .gallery-style-2 .img-link, .gallery-style-3 figure:nth-child(1) > .img-link, .gallery-style-right-3 figure:nth-child(1) > .img-link { height: 626px; } .gallery-style-right-3 figure:nth-child(2) > .img-link, .gallery-style-right-3 figure:nth-child(3) > .img-link, .gallery-style-3 figure:nth-child(2) > .img-link, .gallery-style-3 figure:nth-child(3) > .img-link { height: 300px; }
Best regards,
IsmaelMarch 19, 2018 at 6:29 pm #929215Thanks for the reply,
There is nothing wrong with jay miron’s website, I am trying to achieve a similar design for his pictures orientation part on mine but I can’t seem to do it with the template on enfold. This is what I am trying to do : https://imgur.com/uwxjRpI
I guess you answered my question on how to do it. If I am not mistaken there isnt a way to do it with the given templates and the only way to achieve it I must enter CSS codes manuallyMarch 20, 2018 at 11:01 am #929696Hi,
Please edit your Masonry element and choose “Perfect Manual Masonry” in Size setting. You can add “portrait” tag to your post on your left and “landscape” to the ones on the right.
If you would like us to look into it for you, please create a temporary admin login and post it here privately.Best regards,
YigitMarch 20, 2018 at 8:53 pm #930113Hi Yigit,
Thank you for the reply, I actually cannot find any Perfect Manual Masonry option under size setting. This is what I see: https://imgur.com/JF5Q7Lb
March 20, 2018 at 9:29 pm #930121Hi,
Could you please post username as well? I tried “admin” but it did not work :)
Best regards,
YigitMarch 20, 2018 at 9:42 pm #930127Sorry I forgot to attach username.. Please see below.
Thanks!March 22, 2018 at 4:35 am #931010Hi,
I guess you answered my question on how to do it. If I am not mistaken there isnt a way to do it with the given templates and the only way to achieve it I must enter CSS codes manually
Yes, unfortunately, that is not doable with the masonry elements alone so the css modifications above are required. You may also have to add the html tags manually in a text or code block. You can set the masonry columns to two and the size settings to “Perfect Automatic Masonry” but the size of each column will be 49%-50% of the whole container.
Best regards,
IsmaelMarch 22, 2018 at 10:29 am #931119Do I put in
.gallery-style-3 figure:nth-child(1),
.gallery-style-right-3 figure:nth-child(1) {
width: 32%;
}.gallery-style-right-3 figure:nth-child(2),
.gallery-style-right-3 figure:nth-child(3),
.gallery-style-3 figure:nth-child(2),
.gallery-style-3 figure:nth-child(3) {
width: 66%;
}/*——————————————————————–
Advanced galleries fixed heights and margin
——————————————————————–*/
.gallery-style-right-3 figure:nth-child(2),
.gallery-style-3 figure:nth-child(2) {
margin-bottom: 26px;
}.gallery-style-2 .img-link,
.gallery-style-3 figure:nth-child(1) > .img-link,
.gallery-style-right-3 figure:nth-child(1) > .img-link {
height: 626px;
}.gallery-style-right-3 figure:nth-child(2) > .img-link,
.gallery-style-right-3 figure:nth-child(3) > .img-link,
.gallery-style-3 figure:nth-child(2) > .img-link,
.gallery-style-3 figure:nth-child(3) > .img-link {
height: 300px;
}into the Section ID under Masonry Gallery? I tried it and it doesn’t work.
I also noticed another problem, the pictures has a strange line on the side when I upload them into the gallery. seen here : https://imgur.com/bYqbEbm (bottom of the picture). Is there any explanation for that?March 23, 2018 at 9:57 am #931855Hi hondacbr26,
This code should be inserted into Theme options > General styling > Quick css.
Best regards,
VictoriaMarch 26, 2018 at 9:12 am #932875Can you be more specific? I’ve inserted the code in the quick CSS box but nothing has changed. what should other settings be to get the desire orientation ?
March 27, 2018 at 4:17 am #933318Hi,
Did you use the html tags in a code or text block? Please provide the login details in the private field. We’ll create a test page.
Best regards,
IsmaelMarch 27, 2018 at 11:12 pm #933932I’ve provided my login info in previous replies.
March 30, 2018 at 9:52 am #935197Hi,
We added the html codes in a code block and modified the css codes a bit. ( see private field )
Best regards,
IsmaelMarch 31, 2018 at 5:01 am #935513The pictures doesn’t seem to scale when the screen shrink, is that part of the short code?
Also, If I want to put my photos up, which part of the short code do I exchange for my jpg’s link?April 2, 2018 at 1:19 pm #936062 -
This topic was modified 6 years, 12 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.