Tagged: x
-
AuthorPosts
-
April 15, 2016 at 3:44 am #883904
teerikParticipantI have a problem with card elements on my website. Those look nice on desktop and mobile phone but on tablet size devices the images jump here and there and header texts are too wide. Is there some way to make these scale down nicely? I tried setting image widths by pixels or percentages. The header font is quite big and at least one text should be hyphenated because it is so long word. I tried adding CSS but no luck. Smaller font would be ok if hyphenation would not work.
PS. Also if there is a solid way of auto playing banner video on mobile devices it would be awesome. I implemented a workaround to make it play through the link below, which is only shown for smaller size screen sizes (mobile devices). I don’t want to show controls on that banner video.
April 15, 2016 at 3:45 am #883906
teerikParticipantThis reply has been marked as private.April 15, 2016 at 11:17 am #884475
JackKeymasterHi there @teerik,
Thanks for writing in!
I’ve tried to take a look at this for you, but there are mulltiple content overlapping issues on all screen sizes (screenshot attached, the first is a desktop and the second is a tablet).
Can you please provide wp-admin login details in a private reply please and try removing any custom CSS added in case this is conflicting.
Thank you!
April 19, 2016 at 7:56 am #889953
teerikParticipantThis reply has been marked as private.April 19, 2016 at 11:34 am #890370
ThaiModeratorHi There,
To fix this issue, please add the following CSS under Customizer > Custom > Global CSS:
@media (max-width: 979px){ .x-card-outer .x-face-title { font-size: 15px; } .x-face-graphic img { width: 100% !important; height: auto; } }Hope it helps 🙂
April 19, 2016 at 1:20 pm #890571
teerikParticipantThanks, it’s now much better. Still couple of issues as you can see from the attachment (screenshot from iPad):
1) content of cards are vertically out of their place (vertically centered on the card is not a nicest looking, but the content should be starting from top)
2) two images don’t show for some reasonApril 20, 2016 at 2:17 am #891352
ChristopherModeratorHi there,
Please add this CSS as well:
@media (max-width:120px) and (min-width:767px){ .x-card-outer.center-vertically .x-face-inner:before { height: auto; } }Hope it helps.
August 15, 2016 at 3:15 pm #1132430
Kim gParticipantHi there-
Here is my website:
http://prosperaslove.com/I tried this code and also this:
@media (max-width:860px) and (min-width:767px){
.x-card-inner {
height: 289px !important;
}
}Nothing seems to work for iPad portrait OR landscape mode. Here is an image of portrait mode:
Front: http://prosperaslove.com/wp-content/uploads/2016/08/IMG_0097.pngBACK: http://prosperaslove.com/wp-content/uploads/2016/08/IMG_0098.png
Please advise and thank you as always
August 15, 2016 at 11:21 pm #1132951
RupokMemberHi there,
Your CSS is working fine on my end – http://prntscr.com/c69d2o
Let’s check clearing your cache. And make sure to check within 767px – 860px as you have defined this on your media query.
Thanks!
August 16, 2016 at 10:58 am #1133721
Kim gParticipantThe front image is being cut off. Check your screenshot against this on desktop:
http://prosperaslove.com/The images are being cut off, not resized.
The back of the image with the words does seem to be ok now.
Please advise
August 16, 2016 at 12:53 pm #1133922
RupokMemberHi there,
You need to use background-size: 100% auto; within the media query to prevent cut off :
@media only screen and (min-width: 767px) and (max-width: 1023px) { .blueprint .x-face-outer.front, .prosperity-press .x-face-outer.front, .podcast .x-face-outer.front { background-size: 100% auto; } }Hope this helps.
August 17, 2016 at 12:39 pm #1135479
Kim gParticipantThis didn’t change anything…maybe I am putting in the wrong place? I put it in the custom CSS in customizer. Is “media query” a different place?
August 17, 2016 at 1:46 pm #1135566
RupokMemberHi there,
Yes you need to place this under Custom > CSS in the Customizer. Make sure other codes are closed properly because unclosed code will prevent the other code to be generated properly. I have tested the code on your site and should work fine. You can try updating a bit though :
@media only screen and (min-width: 767px) and (max-width: 1023px) { .blueprint .x-face-outer.front, .prosperity-press .x-face-outer.front, .podcast .x-face-outer.front { background-size: 100% auto!important; } }Thanks!
August 17, 2016 at 2:48 pm #1135666
Kim gParticipantThis reply has been marked as private.August 17, 2016 at 9:56 pm #1136173
Rue NelModeratorHello There,
Thanks for the updates! This is what happen to your card:
Your card is using a custom css that place a background image. Please keep in mind the a background image behaves differently compared when an image is used as an image element within the card element. To fully understand how background image work, please check out this topic: https://community.theme.co/forums/topic/section-background-image-2/#post-691126
If you want to resolve this issue, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
@media(max-width: 979px){ .blueprint .x-face-outer.front, .prosperity-press .x-face-outer.front, .podcast .x-face-outer.front { background-size: contain; } }Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-883904 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
