Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to vertically center primary sidebar on Streamline Pro?
Tagged: primary sidebar, streamline pro
- This topic has 10 replies, 3 voices, and was last updated 8 years, 4 months ago by
Robert.
-
AuthorPosts
-
June 22, 2017 at 10:35 am #208087
jasonyormark
MemberI made some header adjustments to the logo side that seemed to put the alignment out of whack for the primary sidebar area. How can I adjust this to be centered vertically?
June 22, 2017 at 11:17 am #208089Victor Font
ModeratorNot sure why, but clicking on your post title is requesting a userid and password for WPEngine twice.
Please post a link to the site.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?June 22, 2017 at 11:18 am #208090jasonyormark
MemberJune 22, 2017 at 11:31 am #208092Robert
MemberThought you wanted to center you nav at first:
I used this code and it put the social media widgets to the middle of the header and looked OK on mobile as well.
.site-header .widget-area { float: right; text-align: right; width: 720px; vertical-align: middle; vertical-align: bottom; <strong>margin-top: 2%;</strong> }This is line 1020 in your stylesheet.
Add this to your code and it will center the nav:
.genesis-nav-menu { clear: both; color: #999; line-height: 1; width: 100%; <strong>text-align: center;</strong> }It is line 1042 in your stylesheet. Under `
/*
Site Navigation
---------------------------------------------------------------------------------------------------- */`
-Robert McMillin
RobertMcMillin.comJune 22, 2017 at 11:36 am #208093jasonyormark
MemberTried that and it didn't move anything. Just to clarify, this is for the social media icons on the top right in the header area.
June 22, 2017 at 11:39 am #208096Robert
MemberSorry about that, that code centered the nav which is what I thought you meant originally. Here is some code that should do the trick as a quick fix.
/* Widget Area --------------------------------------------- */ .site-header .widget-area { float: right; text-align: right; width: 720px; vertical-align: middle; vertical-align: bottom; margin-top: 2%; }You are only adding this code to the existing style:
margin-top: 2%;
-Robert McMillin
RobertMcMillin.comJune 22, 2017 at 11:41 am #208097Robert
MemberAlso, just from a style standpoint the centered nav, in my opinion, looks better for your site design. So you may want to consider using that code as well.
-Robert McMillin
RobertMcMillin.comJune 22, 2017 at 11:42 am #208098Robert
MemberAlso don't add the
<strong> </strong>tags, that was a mistake on my part, I was just trying to emphasize the line of code you needed to add.
-Robert McMillin
RobertMcMillin.comJune 22, 2017 at 11:49 am #208101jasonyormark
MemberThanks a ton for your help! Worked great.
June 22, 2017 at 12:58 pm #208112Robert
MemberJune 22, 2017 at 4:53 pm #208135Robert
Member -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.