[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/resp/ - Responsive Design

Mobile-first approaches & cross-device solutions
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1793134019754.jpg (84.23 KB, 736x920, img_1793134011443_9ibtgvyl.jpg)ImgOps Exif Google Yandex

7a99f No.2298

always seeing people hardcode width: 300px on form inputs like it's still 2005. makes everything break when the viewport shrinks below that value. use max-width instead so the element can actually shrink with its parent. if you're using a framework, just check your global styles.
>set width to exactly 300px
it's literally such a rookie mistake. breaks flexbox layouts instantly and causes that annoying horizontal scroll on small screens. just use 100% or something sensible for once.

input {width: 100%;max-width: 400px;}


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]