Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Css, divs gets squeezed when used margin - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
5 replies
Yido
Css, divs gets squeezed when used margin
https://codepen.io/SirYido/pen/WNqLjGK
| when i use margin on the class of divs
(
.barBtns
) they get squeezed up
. why is that happening and how can i stop this
, am i doing something wrong
?
CodePen
SirYido
Untitled
.
.
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
CSS Margin Collapse
KP-C
Kevin Powell - Community / front-end
4y ago
Having CSS Issue where putting margin in inner divs moves my whole component
KP-C
Kevin Powell - Community / front-end
16mo ago
CSS Margins Help
KP-C
Kevin Powell - Community / front-end
2y ago