Jump to content

Empty box appearing on mobile version of homepage

Recommended Posts

  • Replies 10
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

14 minutes ago, Greevsie007 said:

Hi, thanks so much for your reply. I’ve checked on some other people’s mobiles over the weekend and it seems to only be appearing on iPhones. Do you happen to know how I can resolve this issue? 

You can share link to this page, I will try checking on iPhone

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

Try this code to Website > Website Tools > Custom CSS

@media screen and (max-width:767px) {
.wrapper {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%,-50%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.wrapper>* {
    margin-bottom: 50px;
    margin-top: 50px;
}
}

 

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

Thanks so much for sending that.

This is the CSS currently in place for that page. Just wondered where I should replace/insert the new CSS? I have tried it in a couple of places but it didn't change anything. Sometimes it also says the opening { is missing so won't save. Any advice would be much appreciated!

 

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 4.5s steps(40,end)
}

@keyframes typing {
  from {width: 0}
  to {width: 100}
}

//** Nav strikethrough **//
@media screen and (min-width: 800px) { 
  nav {
    ul {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

li {
  display: inline-block;
  padding-left: 2px;
  padding-right: 4px;
  position: relative;
  display: block;
  cursor: pointer;
}

span {
  position: relative;
  display: block;
  cursor: pointer;
}

li:before, span:after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  top: 50%;
  margin-top: -0.5px;
  background: #fff;
}

li:before {
  left: -2.5px;
}
li:after {
  right: 2.5px;
  background: #000;
  transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

li:hover:before {
  background: #000;
  width: 100%;
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

li:hover:after {
  background: transparent;
  width: 100%;
  transition: 0s;
}
}
}

  
//** End Nav strikethrough **//

 

Link to comment
19 hours ago, Greevsie007 said:

Thanks so much for sending that.

This is the CSS currently in place for that page. Just wondered where I should replace/insert the new CSS? I have tried it in a couple of places but it didn't change anything. Sometimes it also says the opening { is missing so won't save. Any advice would be much appreciated!

 

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 4.5s steps(40,end)
}

@keyframes typing {
  from {width: 0}
  to {width: 100}
}

//** Nav strikethrough **//
@media screen and (min-width: 800px) { 
  nav {
    ul {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

li {
  display: inline-block;
  padding-left: 2px;
  padding-right: 4px;
  position: relative;
  display: block;
  cursor: pointer;
}

span {
  position: relative;
  display: block;
  cursor: pointer;
}

li:before, span:after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  top: 50%;
  margin-top: -0.5px;
  background: #fff;
}

li:before {
  left: -2.5px;
}
li:after {
  right: 2.5px;
  background: #000;
  transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

li:hover:before {
  background: #000;
  width: 100%;
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

li:hover:after {
  background: transparent;
  width: 100%;
  transition: 0s;
}
}
}

  
//** End Nav strikethrough **//

 

Add code to top of Custom CSS box.

 

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

Hi, I tried this but the empty box is still there unfortunately. Adding the code seemed to also mess up the layout of one of the other pages on the mobile version (see below) so I have changed it back for now. Any other ideas of how I can resolve the issue?

Website page.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.