hackett_hkd
hackett_hkd
KPCKevin Powell - Community
Created by hackett_hkd on 9/24/2024 in #front-end
Why my margin does not work?
I'm working on a navigation bar and have set a margin on the .headerContainer, but it doesn't seem to be taking effect. Could you help me understand if I'm doing something wrong? Here is the codepen: https://codepen.io/hackett-lai/pen/abebjow?editors=1100 <div class="headerContainer"> <img src="https://i.imgur.com/kF6nml7.png" /> <div class="nav-list"> <button class="menu-btn currentPage" active>ABC</button> <button class="menu-btn">DEFG</button> <button class="menu-btn">HIJ</button> </div> </div> body, html { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; width: 100%; } .headerContainer { background-color: yellow; width: 100%; padding: 20px 0px; display: flex; flex-wrap: wrap; flex-direction: row; margin: 0px 20px; } .headerContainer img { height: 54px; margin-right: auto; } .nav-list { display: flex; flex-direction: row; align-items: center; } .menu-btn { height: fit-content; padding: 4px 8px; font-size: 16px; color: var(--grey-text); background-color: transparent; border: none; cursor: pointer; transition-duration: 0.3s; border-radius: 4px; display: block; } .menu-btn:hover, .currentPage { background-color: var(--main-green-0); color: var(--white); } :root { /* color theme */ --white: hsl(0, 0%, 100%); --main-green-0: hsl(80, 60%, 50%); --grey-text: hsl(0, 0%, 38%); }
13 replies
KPCKevin Powell - Community
Created by hackett_hkd on 12/15/2023 in #back-end
"CORS" issue with MongoDB
No description
1 replies
KPCKevin Powell - Community
Created by hackett_hkd on 12/6/2023 in #front-end
og:image for WhatsApp is not working
No description
3 replies
KPCKevin Powell - Community
Created by hackett_hkd on 11/14/2023 in #back-end
How to update Mongodb?
No description
1 replies
KPCKevin Powell - Community
Created by hackett_hkd on 9/11/2023 in #front-end
How to accurate the canvas height with mobile keyboard shown?
No description
2 replies
KPCKevin Powell - Community
Created by hackett_hkd on 9/6/2023 in #front-end
How to cater background-blend-mode on mobile?
I'm have a background image with below code body { min-height: 100dvh; width: 100%; background: url(assets/line_pattern-2.png), linear-gradient(180deg, #0050a2 0%, #000 100%); background-size: 400px 400px, 100%; background-repeat: repeat, no-repeat; background-blend-mode: multiply, normal; font-family: Arial; } I wonder how can I make the background-blend-mode: of my png work on ios safari as well?
1 replies
KPCKevin Powell - Community
Created by hackett_hkd on 8/10/2023 in #front-end
How can I animate an existing element when appending a new one?
47 replies
KPCKevin Powell - Community
Created by hackett_hkd on 8/8/2023 in #front-end
How to make border-image work with border-radius ?
11 replies