r/csshelp • u/jerseykin • Sep 14 '20
Request Site Title and Navigation Bar Alignment Help
Hi,
I'm not a web developer in the slightest and I need some help with alignment. I'd like my site title "Niki Phillips Photography" to be truly aligned all the way to the left, like the picture of a man on a mountain a bit below it.
Similarly, I'd like the nav bar aligned truly to the right. The spacing between nav links is fine, I'd just like it on the right side of the page.
link to website is below:
any help is truly appreciated! I'm sure it's something quick and easy but it is driving me crazy!
1
u/Krossfireo Sep 15 '20
Your .Header-inner class has a padding-right of 27.5px, remove that and that will be against the left edge. The padding-right is also 27.5 on that class, so if you remove that, I think it gives you the effect you want.
1
u/FriesWithThat Sep 15 '20
Your header has a header-inner class that is a constrained container, currently set to max-width: 1180px. So they are as left and right aligned as possible within that space. What you see in the middle of the DevTool panel in the attached screen shot is I simply turned-off the declaration for the max-width in the .header-inner rule (it appears unchecked and struck-thru). What you'd want to do in the css is to change this property to
Leave the margin-left and margin-right properties alone as they are overriding some other display: flex properties to keep the site centered.