My site is not looking good on iPhones or Android phones (misalignment of text and photos) even though everything looks good in preview mode. I have not idea what i’m doing wrong.
Hi @JSummers, Can you please update your post with some more information so we can help you faster? Things like screenshots and your environment info really speed things up.
Hello @JSummers,
I can see several reasons of this problems, so lets go step-by-step.
Somehow you have structure, where is container sit inside the container. Don’t know how you did that, because it is impossible to do by just drag and drop.
Container is the element that has presets, which make it always centered on the page. But seems like you needed something that is not centered or has bigger width. Then you should use regular div and you would not have to use so huge negative margins and positioning for move content to the place that you like.
Big negative margins and positioning very often cause overflow and make content all messed up on mobile devices. Some of the elements in your case, unfortunately end up very far away from body edges because of not correct positioning.
I would recommend re-create your site structure with using CSS box-model principals, or at least get raid of huge margins/padding compensated by huge negative margins/padding on other element.
Thanks that helps with the misalignment of text. Could you make a video explaining how to fix the white space issue i’m having in portrait mode on mobile?
There is probably an element on your site with a really great width, find this element, reduce the width or set the overflow to none and ill think you’ll be alright.
Take a look one more time. I restored the version that has all the content I want. It has white blank space on the right side. Only in portrait mode on mobile (landscape & tablet work fine). I have a iPhone 6.
Well, then you probably forgot to fix issues that I showed you before.
There is 3 lists of items, which wider than body. It makes all content pushing to the left and create gap. Follow my recommendations, reduce lists width and gap will disappear.
I actually tried this last night and there was still a gap. I just deleted the lists entirely so you can see that the gap is not being caused buy the lists only. Take another look.
Well, without lists gap is about few pixels. But I can’t find the reason, unfortunately. It could be some padding or margin. on one of the hidden elements.
Super sorry to hear about the issue you’re experiencing. @sabanna found few things that might have helped with solving your problem, so kudos on that Anna :)
I have found few more things that should solve this problem.
First of all please move navbars from inside of hero section and keep them in the root of the body. There are few exceptions of doing so but this is a common usage.
Now… head to your mobilenav node (easy to do so from navigator)
Once you’re there please go to mobile view
and go to styles where we need to fix few things.
First of all we need to clear width value. You can do that by clicking on blue name and remove
Now make sure you set values in designer as in the picture below. That will make sure we have a navbar appearing at the very top of the website and that it will fill entire width of the screen :)
Notice how I have cleared values for margin, width etc in here. Webflow handles default values for this on the level that is enough for this to work well :)
That should do the trick for the white background on the side of the screen. If you have followed all steps provided by @sabanna in previous posts and this post you’re reading you should have that working well :)
I have also saw you’re using two navbars: first for desktop, tablet and phone landscape and second for mobile portrait only. I am surprised as you can use only one and style it however you want :) Please take a moment and watch the video in our tutorial available at Webflow 101 | Webflow University where you should get to know the basics of navbar integration and styling.
Let us know if you need any further assistance and make sure to follow steps we’re providing :)