page width extending

i'm in the beginning process of starting my page, though i saw the width is overflowed and extended. i can't seem to spot what or where is making it overflow. would anyone know how to fix it?
No description
No description
21 Replies
b1mind
b1mind5mo ago
Kevin Powell
YouTube
The problems with viewport units
Conquering Responsive Layouts (free course): https://courses.kevinpowell.co/conquering-responsive-layouts Join the Discord: https://kevinpowell.co/discord Viewport units often feel like this cheat code that makes things so much easier when you first discover them, but they actually are problematic for a number of reasons, from creating horizon...
b1mind
b1mind5mo ago
don't use 100vw really try not to set strict height/width period let your content/children be free (determine the size)
γιαννη
γιαννη5mo ago
i removed both height and the widths set and it's still extending
b1mind
b1mind5mo ago
best if you put it in a codepen example for others to debug We can't see what you see
b1mind
b1mind5mo ago
seems good?
γιαννη
γιαννη5mo ago
hm
b1mind
b1mind5mo ago
I mean you hit overflow about 500px cause of your grid but otherwise seem right
γιαννη
γιαννη5mo ago
it is now that's so odd, maybe it just didn't fix in my browser? i kept reloading after changing in my code whoops mb
b1mind
b1mind5mo ago
refresh could be cache idk how you are serving the code locally
γιαννη
γιαννη5mo ago
i actually did have a question about grid layouts though. apologies for the questions as i am still a beginner, it's most likely very simple questions i have lol
b1mind
b1mind5mo ago
grid ❤️ you should probably make a new post but shoot >.>;;
γιαννη
γιαννη5mo ago
is there a way i can specifically set the width of columns and what not? i'm trying replicate the interface of instagram feed layouts, and i can't seem to get it to span the right way
γιαννη
γιαννη5mo ago
No description
No description
b1mind
b1mind5mo ago
you are doing it here grid-template-columns: 200px 100px 100px 100px;
γιαννη
γιαννη5mo ago
in mine, i'm trying to get the follow button to span beneath the photos, followers and following, then have the bio span completely below the pfp and follow button. this is what i have so far: yeah
b1mind
b1mind5mo ago
oh gotcha yes
γιαννη
γιαννη5mo ago
owuld it be possible to set it all to 100px, then would i have to use positioning and z index for it to span over the 100px cols?
b1mind
b1mind5mo ago
on the child element you can specifiy which cols its in or if it spans so like followers you could add
.followbutton {
grid-column: 1 / span 3;
}
.followbutton {
grid-column: 1 / span 3;
}
well really you could just put span 3 but that is the idea for the emojis too so if you needed to start 3 / span 2 Or you can be specific to which lines to start / end on grid-column: 1 / 3 https://css-tricks.com/almanac/properties/g/grid-area/ grid area/names/named lines is where the power of grid really takes hold.
γιαννη
γιαννη5mo ago
ahhhhhh
b1mind
b1mind5mo ago
No description
Want results from more Discord servers?
Add your server
More Posts
MERN Stack - Search box returning empty arrayHi. I'm developing a MERN stack web app, and am encountering a problem with my search box where if kHaving issues with scale property on hoverHello! I've found myself unable to fix this weird blurring that happens to the card's text and imageHaving issues with Responsive Web View and Javascript hover propertyHello, Please I'm having issues with the responsive web view of my portfolio. It seems as if the vieMaking an image take the height of the div it is inside of## Problem I want the image on the right (yellow outline) to start shrinking down if the red outlineHow do I find out how to create and conduct surveys and interviews in UX?I struggle how to conduct good and efficient interviews and surveys. Is there a good textbook with ton Chrome, transformed img is flickering if an element has background half-cover itI'm building a 3d gallery, everything works fine until the sticky menu bar appears. The images underHelp setting upHi! So I am new to back-end, decided to learn it via a [tutorial](https://www.freecodecamp.org/learnDocker dev containers or ways to use docker without installing development tools on host machineI've heard dev containers with vscode can make isolated dev environments but it's still a little newAfter I've added <!DOCTYPE html>, everything became buggyPlease, can someone help me on codepen? I'd like to learn how to fix this problem and to fix my websNextjs LayoutHello, I want to ask about a way to remove the root layout from displaying in a certain component fi