-
AuthorPosts
-
September 9, 2016 at 2:29 am #683944
Hi. On our home page, the header includes the Advanced Layer Slider with just one slide. The entire slide appears – and is working well – on laptop, desktop, iPhone, iPad and Kindle. However, on SurfacePro, the top and bottom of the slider are cut off, meaning the top portion and the bottom portion are not visible. Do you have any suggestions?
I can provide a screenshot if it will help.
Thank you!
September 9, 2016 at 1:31 pm #684164Hey Arrastia,
The images appear to be cut off because it has to fit the height and width of the container. Please modify the slider images and have more gap on the top and bottom so the main content of the image will appear in the center and won’t cut off.
Best regards,
VinaySeptember 9, 2016 at 4:57 pm #684261Thanks, Vinay, for your reply.
Please clarify for me: It seems to work fine on all devices except SurfacePro. Doesn’t that indicate that the sizing is okay, but it is just a display issue on the Surface? Is there a way to address this with CSS specifically for SurfacePro instead of changing my entire slider for all devices?
If not, can you please provide more detail on how to accomplish what you are suggesting?
Many thanks.
September 9, 2016 at 9:28 pm #684354Hi!
That can be a CSS issue based on Surface.
What browser you are using there. Microsoft Edge or something else?Thanks a lot
Cheers!
BasilisSeptember 11, 2016 at 12:07 am #684611It looks the same (cut-off) in both chrome and explorer on the SurfacePro. When moved to an extended desktop monitor, the slider is normal, regardless of browser.
Thank you.
September 11, 2016 at 12:31 am #684624Hi,
The image need to look proportionate in all screens. Some screen width is small and the slider height reduce accordingly. So please increase the image height and add the main content of the image in the center. You need to use a photo editing software like photoshop to achieve this.
Best regards,
Vinay- This reply was modified 8 years, 3 months ago by Vinay.
September 12, 2016 at 8:43 pm #685349HI Vinay.
I have tried changing image size multiple times with no luck. This issue seems to affect only Surface Pro. Can you give me an idea of the best dimensions to use for this image to make it respond correctly on all devices? I have the settings set to “Full Width” and “Responsive.”
I would be most appreciative of any additional instructions you can provide.
Thanks.
September 14, 2016 at 4:39 pm #686474HI. Any additional suggestions on this? I sure would appreciate it! :-)
September 16, 2016 at 4:36 am #687179Hi,
Would you mind posting us a screenshot/mockup of what you would like to achieve? You can upload the screenshot to imgur.com or dropbox and share the link here :)
Best regards,
VinaySeptember 23, 2016 at 4:15 am #690461Vinay, the closest thing to what I want to achieve is working correctly on most devices. You can see it correctly displayed at http://mitchelllindsey.fiveoaksdemo.com/. The problem I am trying to solve appears to be only on the SurfacePro where the top and bottom of the slider is being cut off, so the text at the top – “Electrical’ is not entirely visible, and the images at the bottom are not entirely visible either. So I suppose what I really need is to know the optimal dimensions and/or settings for the Advanced Layer Slider. OR, as an alternative, perhaps I don’t NEED to use the Advanced Layer Slider, since I am using only one slide? Perhaps there is another way to achieve this look without the Advanced Layer Slider?
Thanks again.
September 24, 2016 at 8:04 am #691102Hi,
I’m unable to reproduce the issue would you mind posting us a screenshot/mockup of the issue on surface pro please so we can troubleshoot this further. You can upload the screenshot to imgur.com and share the link here.
Best regards,
VinaySeptember 26, 2016 at 2:46 pm #691711Vinay, here is a link to the images that show the Surface Pro view and the normal (correct) view. Thank you.
September 29, 2016 at 12:23 am #692918Hi just checking in to see if the screenshot provided offer any help in figuring this out. Thanks.
September 30, 2016 at 8:14 am #693554Hi,
The device has higher screen resolution compare to standard desktops so it stretches the image. Please edit the image layer then go to the attributes panel. Apply a unique id or class attribute to it then add the following css code:
@media only screen and (min-width: 2000px) { .customcssclass { margin-top: 0 !important; } }
Replace “customcssclass” with your custom id or class attribute.
Best regards,
IsmaelSeptember 30, 2016 at 3:57 pm #693853Hi Ismael. Thanks for your assistance.
I made a copy of the slider, then went to attributes and entered a class name into the class field. Then I replaced the text in your code to match and pasted it into the Custom CSS field in the Theme Settings section.
Unfortunately, its appearance did not change on the Surface Pro.
Any other ideas?
Thank you. I sincerely appreciate your continued assistance with this.
September 30, 2016 at 3:58 pm #693854In case it helps, here is the entire block of css I have in the custom css field:
div .logo {
display: none !important;
}.tablepress-id-1 {
width: auto !important;
}.tablepress .column-1 {
width: 325px;
}.tablepress .column-2 {
width: 200px;
}.tablepress .column-3 {
width: 100x;
}/*TEXT SIZE BIGGER AND COLOR DARKER PHONE INFO BAR*/
.phone-info {font-size: 20px !important;color:#2F4A87 !important;}@media only screen and (min-width: 2000px) {
.surfaceclass {
margin-top: 0 !important;
}
}October 4, 2016 at 5:21 am #694859Hi,
I’m sorry but I thought that the image was added as a layer. It is the slider background. Please use this css code:
@media only screen and (min-width: 2000px) { #layerslider_8 .ls-bg { margin-top: 0 !important; } }
It should work here. http://mitchelllindsey.fiveoaksdemo.com/index.php/test/
Could you please check the actual resolution of the surfacepro device?
Best regards,
IsmaelOctober 15, 2016 at 12:04 pm #699354Ismael, I entered the css code you provided in your last post, so the Quick CSS under Theme Options>General Styling now looks like what I have pasted below.
In addition, in your last post you had asked me to check the actual resolution of the SurfacePro. Here is what my client is telling me:
“The problem is still there. It does, however, change when I lower the resolution. I have my surface set at the highest resolution (2160×1440), which is the recommended resolution. If I lower the resolution, the banner gets better during each stage and looks perfect if I set the resolution low enough. However, I know a lot of people who use surface pros and the majority have it at the highest resolution.”
AND HERE IS THE CSS CODE AS IT NOW APPEARS IN QUICK CSS:
div .logo {
display: none !important;
}.tablepress-id-1 {
width: auto !important;
}.tablepress .column-1 {
width: 325px;
}.tablepress .column-2 {
width: 200px;
}.tablepress .column-3 {
width: 100x;
}/*TEXT SIZE BIGGER AND COLOR DARKER PHONE INFO BAR*/
.phone-info {font-size: 20px !important;color:#2F4A87 !important;}@media only screen and (min-width: 2000px) {
.surfaceclass {
margin-top: 0 !important;
}
}@media only screen and (min-width: 2000px) {
#layerslider_8 .ls-bg {
margin-top: 0 !important;
}
}Many thanks for your assistance, as I really need to get this resolved.
Best regards.
- This reply was modified 8 years, 2 months ago by Arrastia.
October 18, 2016 at 9:51 am #700513Hey!
If the maximum width of the device is 2160px, the css code should be applied to it. Please try the follwing css media query instead.
@media (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5), (min-resolution: 144dpi), (min-resolution: 1.5dppx) and (min-width: 1500px) and (max-width : 2160px) and @-ms-viewport { { /** Surface Pro styles here **/ #layerslider_8 .ls-bg { margin-top: 0 !important; } }
Based on this thread. http://stackoverflow.com/questions/19855268/surface-and-css-media-queries
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.