#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Resize any DOM element using two lines of CSS
·
Amit Merchant
·
Aug. 18, 2025, 11:02 a.m.
CSS
CSS
DOM Manipulation
Web Development
Frontend Techniques
Summary
The blog post discusses a CSS technique showcased by Kamran Ahmed that allows for resizing any DOM element using only two lines of code, presenting a simple yet clever method that may not be widely known among developers.
Read full post on www.amitmerchant.com →
MORE POSTS LIKE THIS
A Few of The CSS Tidbits I Put in The Site
Jonathan Snook ·
Jul 16, 2026
CSS
Web Development
In-N-Out Animation using sibling-index()
Frontendmasters ·
Jul 13, 2026
CSS
animation
Color Shifting in CSS
joshwcomeau ·
Sep 8, 2025
CSS
animation
CSS bar charts—styling data with CSS3 and progressive enhancement
Harry Roberts ·
Feb 2, 2010
CSS
Data Visualization
Mozilla would do well to listen to the passionate comments on Hacker News
newsonaut ·
Sep 2, 2026
Firefox
Hacker News
Let’s Use the Emergent CSS random() Function in all the Browsers
CSS-Tricks ·
Aug 31, 2026
articles
Random
Discover more posts →
AUTHOR
Sponsored
Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google