#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
+
Create new post
Create new blog
Add your blog
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
Comparing Values With CSS progress()
Frontendmasters ·
Sep 14, 2026
blog-post
CSS
Sidenotes with CSS anchor positioning
vincentbernat ·
Sep 7, 2026
CSS
Web Development
A Few of The CSS Tidbits I Put in The Site
Jonathan Snook ·
Jul 16, 2026
CSS
Web Development
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
How to Build Your Own iA Writer Templates
Marc Thiele's Journal ·
Nov 26, 2026
ia writer
templates
Discover more posts →
AUTHOR
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
.