Header's Border Line Reacting to Main
I don't know how is that possible to be happening, so here I am.
Here is the piece of the codes:
HTML:
CSS:
5 Replies
It is only happening when dimension is about to 300.
100vh, doesn't really help since I don't want to use media query.
Since I can't see it live, I could be wrong here, but I think what's happening is the navigation is overflowing.
Everything else is the "right" width, and the content inside the header is overflowing because I can't see all that fitting within 300px.
Live is: https://neoaichan.me/blog
I guess the right thing is to do overflow: hidden. But wouldn’t that hide the content of header then?
Neodevil
This is my personal blog.
I'd probably use
flex-wrap: wrap
in the header and footer, so they wrap when there isn't enough room.
Or, really, I'd probably just use a media query and have it go from flex-direction: column
at small sizes, to row
at bigger ones.
I know you said you're trying to avoid media queries, but we do have them for a reason 😄 - but if you really want to avoid them, then I'd use wrap
.I had to use media queries 😂