Jump to content

Header and Portfolio Grid not aligning to body/footer at certain widths.

Go to solution Solved by DPruitt,

Recommended Posts

Hi, 
The website is nice and responsive to width scaling except 2 elements, the header and portfolio grid simple.
*its a inset layout not full.

1. at full width everything is aligned how it should
width1.thumb.jpg.c91d472ebea827f2582c5b8167f22ac8.jpg

2. Start reducing width and the header starts taking off out of the alignment, but footer and body remain perfect

width2.thumb.jpg.cbdeee8dfe3e078653bf86c30a824f7d.jpg

3. start pushing the width even further and the header looks horrible and is flush to each side of the window, but the footer and body look perfect

width3.thumb.jpg.5a433ae911320c3436f6814f80e28e3e.jpg

4. This happens also on the porfolio grid, it goes out of alignment with the header. the footer is perfect always.

width4.thumb.jpg.9f913fb5612a648a12cf4c3b94c848a3.jpg

My question is how can i make the header and portfolio grid behave the same as the footer and stay in the required alignment it starts as full width? 


web: https://ellipse-teal-dl5w.squarespace.com/
pass: 2


Thanks 
 

Edited by MAC1
Link to comment

@DPruitt
It might have something to do with this code, hope this helps:

@media only screen and (min-width: 1656px) {
	.tweak-portfolio-grid-basic-width-inset .portfolio-grid-basic {
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 1600px !important;
    }
    
    .header-width-inset .header-inner {
		width: 1600px !important;
    }
    
    .header .header-announcement-bar-wrapper {
		padding-left: 0 !important;
		padding-right: 0 !important;
    }

}

this code was to help the gallery block align to the header in inset mode because it looked like this before the code:
help2.thumb.jpg.777b0f883e0d102b8e61fe85d7fdb8b7.jpg

Link to comment

Probably be easier if you just invite me into the site with Admin rights:
derek@derekpruitt.design

I would say all of that code can probably be removed as it looks custom.  The inset option alone should be flushing everything accordingly.  There maybe one setting where you need to set a "max-width" not a width code.  If you tell it "width" you're telling it to be 1600px wide on all screen devices.

Edited by DPruitt
Link to comment

Okay go ahead and hit refresh; I think I got it pretty close:

/* align portfolio pagination */

.item-pagination[data-collection-type^="portfolio"] {
    max-width: 1656px;
    margin: 0 auto;
}

@media screen and (min-width: 1656px) {
.content
{padding-left: 8vw;
  padding-right: 8vw;}

.tweak-portfolio-grid-basic-width-inset .portfolio-grid-basic
{padding-left:0px!important;
padding-right:0px !important}
}

FYI, this was placed in the Header Injection of all 3 portfolio index pages so that it wouldn't affect the rest of your pages across your site.  This way it will keep your site dynamically functioning in the backend and other areas across your site.

Edited by DPruitt
Link to comment

Everything is fixed thank you for that, except its created one more new issue now with the middle information on pages:

information gets cut off now, where it didn't before:
image.thumb.jpeg.1b20f4292bf4d210738b84adb7fc4031.jpeg

the information at certain widths doesn't align with the header/footer. which didn't happen before:

image.thumb.jpeg.52d34b950008a50cfdd209c408d1fb59.jpeg

sorry for this last part, everything is so close to working though

Link to comment
  • Solution

Swweettt!

 

Feel free to mark as solution.  Code can be found around line 194:

/* align portfolio pagination */

.item-pagination[data-collection-type^="portfolio"] {
    max-width: 1656px;
    margin: 0 auto;
}


@media screen and (min-width: 1656px) {
  #collection-64da37315a0bb7306fe44e53,#collection-64d0eb024c0ac125cd63e3b8,#collection-64d20affa6742348f6ae01bd
  {#sections
.content
{padding-left: 8vw;
  padding-right: 8vw;}

.tweak-portfolio-grid-basic-width-inset .portfolio-grid-basic
{padding-left:0px!important;
padding-right:0px !important}
  }
}

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.