Jump to content

Fixed position for site header stretches the background image back and forth while scrolling

Recommended Posts

So I'm trying to use this website as my portfolio and thus need the navigation bar stuck on top while users view the case study. This stretches the top background image and then squeezes it back when the user scrolls down. I need a fix for this as it's making my landing page horrendous, and the overall UX of the site subpar. 

Here is my site for reference:
https://www.dipendrasingh.design/
 

Link to comment
  • Replies 16
  • Views 718
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

Hi @tuanphan

I need custom css help as I would like my name and site title (which is on the right at the moment) to be on the left hand side, and the navigation bar (which is on the left at the moment) to be on the right hand side.

Also, is it possible with custom css to have pictures be movable to the viewer (via click and drag)? OR is there custom css which allows me to change the spacing/positioning of the pictures? 

website: https://cobalt-semicircle-k87m.squarespace.com/config/

 

Thank you!

Link to comment
9 hours ago, Nasreen said:

Hi @tuanphan

I need custom css help as I would like my name and site title (which is on the right at the moment) to be on the left hand side, and the navigation bar (which is on the left at the moment) to be on the right hand side.

Also, is it possible with custom css to have pictures be movable to the viewer (via click and drag)? OR is there custom css which allows me to change the spacing/positioning of the pictures? 

website: https://cobalt-semicircle-k87m.squarespace.com/config/

 

Thank you!

Add to Design > Custom CSS

#navigator .siteTitle {
    float: left !important;
}
#navigator header#topBar ul#nav {
    float: right !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Add to Design > Custom CSS

@media screen and (min-width:901px) {
.siteTitle h1 {
    position: absolute;
    right: 0;
}

#navigator .siteTitle {
    position: static;
}

h2.logo-subtitle {
    font-size: 36px !important;
    font-family: 'MADE SAONARA 2' !important;
    margin-top: 0 !important;
}

ul#nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
2 hours ago, tuanphan said:

Add to Design > Custom CSS

@media screen and (min-width:901px) {
.siteTitle h1 {
    position: absolute;
    right: 0;
}

#navigator .siteTitle {
    position: static;
}

h2.logo-subtitle {
    font-size: 36px !important;
    font-family: 'MADE SAONARA 2' !important;
    margin-top: 0 !important;
}

ul#nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}
}

 

@tuanphan thanks - I did input this code and it looks wrong:

 

Screen Shot 2023-01-15 at 10.18.33 AM.png

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.