Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
margin auto query - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
2 replies
snxxwyy
margin auto query
Hey
, in this example
, i
'm aligning the button on the card to the right side
. I have a few questions regarding the methods to do so
.
1
)
On the first card
, a simple
margin-left: auto;
margin-left: auto;
wont work
, however when
flex
flex
or
grid
grid
is applied to the parent as seen on the second card it does
, why is this the case
?
2
)
By using a method other than applying
flex
flex
or
grid
grid
to the parent
, as seen on the third card
, the text wraps
, what causes this behaviour
?
I
'd appreciate and value any insight so i can understand how things work more
, thanks in advance
!
https://codepen.io/deerCabin/pen/qBwymYe
CodePen
R
margin query
.
.
.
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
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
margin auto mistake
KP-C
Kevin Powell - Community / front-end
4y ago
centralize with margin: auto
KP-C
Kevin Powell - Community / front-end
2y ago
Margin auto not working
KP-C
Kevin Powell - Community / front-end
3y ago