- This topic has 7 replies, 2 voices, and was last updated 6 years, 6 months ago by
Tom.
-
AuthorPosts
-
November 3, 2016 at 2:24 pm #241499
generatepressiscool
I’ve done this: https://generatepress.com/forums/topic/copyright-formatting/
Worked to get copyright showing left, while site info showing right.
However I’d like the whole footer to show centered in mobile. How to do this?
November 3, 2016 at 7:33 pm #241542Tom
Lead DeveloperLead DeveloperAny chance you can link me to the page?
November 4, 2016 at 12:05 am #241564generatepressiscool
Can, it’s not live yet, staging site.
The instructions here worked fine: https://generatepress.com/forums/topic/copyright-formatting/
Just when switching to mobile (decrease size window) the footer keeps showing one part right/one part left. Not clean, it should be centered. How to do this?
Example is this footer:
http://www.webtogether.ie/blog/fat-website-footers-what-are-they-and-why-do-we-love-them
=> copyright left, site info right on desktop view
=> on mobile copyright is up centered, site info below, centeredhow to get that?
November 4, 2016 at 12:15 am #241569Tom
Lead DeveloperLead DeveloperYou could try this:
@media (max-width: 768px) { .inside-site-info { text-align: center; } }
Then take the CSS you added to split it into two columns and put it inside this media query:
@media (min-width:769px) { /* 2 column CSS in here */ }
November 4, 2016 at 1:08 am #241573generatepressiscool
Okay, got it to work adding this:
@media (min-width: 769px) { .copyright-right-area { text-align: right; } .copyright-left-area { text-align: left; } }
for the divs itself:
<div class="grid-50 copyright-left-area">copyright text</div> <div class="grid-50 copyright-right-area">siteinfo</div>
Result:
– desktop: copyright is left, siteinfo right – on same vertical height
– mobile: both are centered/stacked – stacked on top of eachotheronly issue
– ipad: copyright is left, siteinfo is right but they’re not vertically aligned well. It seems the grid columns instead of showing next to eachother are stacked on top of eachother. Thsi is same behavior as on mobile, but not centered
– the text inside the grids are not taking the full width of the grids, so it shouldn’t be stacking them on top of eachother
– ideal here would be to show the copyright/siteinfo vertically aligned on same level (showing left/right) like with desktop view… unless there’s not enough space to make it fit then spillover to mobile centered view.Suggestions?
November 4, 2016 at 10:37 am #241715Tom
Lead DeveloperLead DeveloperAfter
grid-50
in your code, addtablet-grid-50
as well.That will tell it to be 50% on tablets as well as desktop.
November 5, 2016 at 2:43 am #241881generatepressiscool
Amazing, this works! Thanks a lot for your help and patience ๐
November 5, 2016 at 10:31 am #241966Tom
Lead DeveloperLead DeveloperYou’re welcome ๐
-
AuthorPosts
- You must be logged in to reply to this topic.