Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to make image start from top of the div and add border radius? - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
3y ago
•
6 replies
Avinash
How to make image start from top of the div and add border radius?
https://codepen.io/avinash-tallapaneni/pen/dygGrjR
parent div of image is positioned
display:absolute
display:absolute
to its parent
. so setting
display:relative
display:relative
to the parent wont work
. How should i proceed
? Also since im using
object-fit:contain
object-fit:contain
how should i add border
-radius to the image
?
CodePen
Avinash-Tallapaneni
dygGrjR
.
.
.
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
how to add border radius for background image in div block
KP-C
Kevin Powell - Community / front-end
2y ago
How to make border-image work with border-radius ?
KP-C
Kevin Powell - Community / front-end
3y ago
Fit image inside div whilst maintaining aspect ratio and border radius
KP-C
Kevin Powell - Community / front-end
3y ago
Border radius
KP-C
Kevin Powell - Community / front-end
16mo ago