This topic has 4 replies, 3 voices, and was last updated 7 years, 9 months ago ago by Rose Tyler
Hi there!
I have just created a promo popup which works great on desktop but when I view it on mobile (portrait), the text is very crammed and extends out of the popup box. It seems that the paragraph text is not responsive. It looks OK when viewing in landscape.
The image was also not responsive however, I have used the following code obtained from another thread to contain it:
@media (max-width: 767px){
.white-popup-block {
-webkit-background-size: contain !important;
-o-background-size: contain !important;
background-size: contain !important;
}
}
I thought it may have something to do with the padding I added but the “Heading 1” seems to act normally but not anything else – have tried with all others and none act the same way.
I hope you can help..?
Many thanks!
Hello,
Please add this code in Theme Options > Custom CSS > Custom CSS for mobile:
#etheme-popup p, #etheme-popup h1 {
padding-right: 0 !important;
}
Regards,
Eva Kemp.
Thanks Eva.
This fixed the padding issue and now looks somewhat presentable however, could you advise why the content (specifically <p>) is not responsive? As you would have seen, H1 changes size accordingly but P does not..
Thanks again and look forward to hearing from you.
Hello,
Try to change previous code to:
#etheme-popup p, #etheme-popup h1 {
padding: 15px !important;
}
#etheme-popup {
width: 350px;
height: 400px;
padding: 0;
}
#etheme-popup p {
font-size: 14px !important;
}
Regards,
Rose Tyler.
You must be logged in to reply to this topic.Log in/Sign up