Layout issues with my website

Layout issues with my website
0

#1

https://codepen.io/Adamemaley/pen/JaMrOP

When I go onto smaller screens the page won’t scroll down.
The footer is pushed up over some of the content.
Only half the nav bar is on the page.


Halp Meh, I'm lost in my code
#2

I havent looked at everything, but one issue you have is your mixing your media query’s. You never add a ending brace before you start your next media query

nav a:hover::before {
    transform: scale(1, 1);
  }
}//you need to add this brace before your second media query

I can scroll down on smaller screens the only big problem is your rose petal logo covers the hamburger icon when it gets to small. The weird thing is you start the navbar on the right, and then move it over to left when it gets small


#3

Also for your footer. I dont see any selector for it with your 800px and above media query. It looks like you only focus on the nav mainly.


#4

Last thing. You are not doing anything with your social media icons. Its up to you, but just adding below has it centered, and at the bottom where its not covering anything up. Thats for the 800px and up. You have the same issue at lower screens

  margin-top: 550px;

#5

If not put in the 800px media query, wouldn’t it just take the form of the footer that I have above the media queries,for the mobile first?


#6

I apologize I got mixed up trying things out. I added that to the social class not the media query’s. My screen is bigger than 800px, so that’s why I thought I put it in the 800 media query. you’re right when you say that it would take the form of the footer. However that puts it in the upper middle of the page


#7

I just can’t figure out if it’s the content being pushed down into it or the footer floating up into it for the regular non media query(mobile).


#8

after a certain point if you make the screen smaller, look at the footer. The content starts to go into the red footer.


Halp Meh, I'm lost in my code
#9

It looks like you fixed the footer problem for larger screens without that massive margin-top. Why not use the same styling when the screen gets smaller? What did you do to solve that? The problem now is your navbar is way to big that its cutting off the beginning text for larger screens


#10

I have my content overflowing into my footer

and the mobile layout is all messed up below 800px.

Need some walking through all of this, I’m lost.


#11

I don’t understand what you mean by content overflowing into footer.

Your navbar is also being cutoff when screen is getting smaller too.

What do you need help with when screen is smaller than 800px?


#12

@shimphillip here’s his original post if you want to skim through it. Not much more explaining here, but maybe you can see what he’s saying

Layout issues with my website


#13

#14

#15

As far as i understood, try giving the .social a max-width: 500px and check the behaviour in smaller screen


#16

That worked for the footer icons, I tried it with the .logo and the logo is still too wide on smaller screens.


#17

Try reducing the width of logo and take it to the right.


#18

I’v tried mess with the width in multiple places. It will only change on the desktop bigger size, mobile…the logo still cuts off screen.


#19

Also, somehow all my social media icons are now pushed to the right side of the white circles when on mobile.


#20

To get your logo smaller in mobile screens, try setting the media query for that,
Ex: try setting media query at,
@media (max-width: 500px) { } and set the width for your logo as 200px or any value lesser accordingly.

When i see, the logo’s are centered to the white circle.