How to move text to bottom of screen for mobile?
Ken Weber
Registered Users Posts: 4 Beginner grinner
I'm a new user so I apologize if this topic has already been addressed but I could not find it with a search. I contacted the SmugMug Heros support team and they could not help me, I was told to post my question in this forum for a possible solution.
I added some copyright text to the bottom of my website but when viewed on a mobile phone it shows up in the middle of the screen on the Home page. Is there some CSS code I can add to move this text it to the bottom of the Home page for mobile?
For reference my website is kweberphoto.com and I attached a screen shot of the Home page on an iPhone which shows the copyright text in the middle of the screen.
Thanks,
Ken Weber
I added some copyright text to the bottom of my website but when viewed on a mobile phone it shows up in the middle of the screen on the Home page. Is there some CSS code I can add to move this text it to the bottom of the Home page for mobile?
For reference my website is kweberphoto.com and I attached a screen shot of the Home page on an iPhone which shows the copyright text in the middle of the screen.
Thanks,
Ken Weber
0
Comments
Is the text currently placed in the body of the page or is it in the footer?
The problem is - your home page has no content in the body of the page, just the background slideshow, header and footer. It is not inherently bad, it looks good on desktop, however, it seems on mobile the responsive design of smugmug pages moves the footer up due to the lack of content in the body of the page.
You can solve this problem by adding an empty content block in the body of the page. It will take up space and keep footer in the bottom of the screen on mobile.
There is a standard empty content block called "Spacer", you can find it under "Design" category. You can adjust its height but it will remain fixed regardless of mobile screen resolution.
You can also drop an HTML content block and copy the following code under HTML tab:
And the following code under CSS tab:
This code will create an empty content block which will take up 25% of browser window height. You can play with the value "25vh" until it fits the mobile screen. This content block will not have a fixed height and will scale according to mobile screen size. So on an older iPhone 5s screen it will take less space than on iPhone 7 screen.
You can also change "vh" for "vw", then it will adjust according to the width of the browser window.
tailoredportraits.com