- This topic has 5 replies, 2 voices, and was last updated 8 years, 1 month ago by Pratik.
-
AuthorPosts
-
March 6, 2016 at 3:51 am #86868huskerParticipant
I want to center the #site-header so that site-title and site-description are centered when in Ipad Portrait mode.
I have tried and tried and can not get it to move.
Brian
March 6, 2016 at 1:34 pm #86878PratikKeymasterHi @husker,
Just need some further information. Do you want it to be centered on all devices, or just on I-pad portrait mode?
Also, do you want the search and social icons to be pushed down as the site title and description is centered?
Let me know and I will provide you with custom CSS.
Regards,
PratikMarch 6, 2016 at 8:02 pm #86894huskerParticipantHi Pratik,
For sure I need to center #site-header for Iphone Portrait and Landscape and Ipad Portrait.
Since desktop and Ipad Landscape are 3 wide, they look ok with a left #site-header.
I realize this may be involved, but I like where the social icons are located on all devices currently.
Brian
March 7, 2016 at 2:45 pm #86942PratikKeymasterHi Brian,
Let me be sure if this is the case: You want the site-header to be centered in Iphone Portrait and Landscape and Ipad Portrait. The social icons will remain on the same site, but will be pushed below the site header because it wont be possible if not pushed down.
You can add following CSS code in Appearance=> Customize=> Theme Options => Custom CSS box:
@media screen and (max-width: 1100px) { #site-branding, .mobile-menu-one #site-branding, .mobile-menu-two #site-branding, #site-header, #site-logo { width: 100% } #site-branding { text-align: center; } }
Let me know if this solves your issue.
Regards,
PratikMarch 7, 2016 at 9:31 pm #86977huskerParticipantHi Pratik,
Yes the code got me almost there.
I had to change the max-width to 990px so that Social Icons would stay in line on Ipad Portrait mode and not center below. It stays looking like the desktop.
Then I noted the Site Title and Site Description were not exactly centered but close.
I then set padding to 0 0px; for #site-branding in the (iPad Portrait) CSS Code. This moved them closer to center.
It seems the Site Title maybe still be a bit left and not perfectly centered. Is there any more padding that could be affecting the Site Header? It is close.
Maybe it is just my eyes.
Thanks
Brian
March 8, 2016 at 10:12 am #87018PratikKeymasterHi Brian,
The Site Header is exactly centered for max-width 990px right now. The only padding is on header and that too top and bottom padding only. -
AuthorPosts
- The topic ‘Center site-header’ is closed to new replies.