#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
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
Web Development
CSS
DOM Manipulation
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
Comparing Values With CSS progress()
Frontendmasters ·
Sep 14, 2026
blog-post
CSS
Sidenotes with CSS anchor positioning
vincentbernat ·
Sep 7, 2026
Web Development
CSS
A Few of The CSS Tidbits I Put in The Site
Jonathan Snook ·
Jul 16, 2026
Web Development
CSS
Color Shifting in CSS
joshwcomeau ·
Sep 8, 2025
Web Development
CSS
CSS bar charts—styling data with CSS3 and progressive enhancement
Harry Roberts ·
Feb 2, 2010
Web Development
CSS
How to Build a Real-Time Word Counter Tool with HTML, CSS, and JavaScript
freeCodeCamp.org ·
Sep 30, 2026
Javascript
Web Development
Discover more posts →
AUTHOR
Advertise
Sponsor diff.blog
Put your product in front of developers who read and write about their craft. One exclusive sponsor at a time.
Become a sponsor →
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.