[ 🏠 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: 1765077897510.jpg (49.41 KB, 1733x1300, img_1765077888705_bpf0st7f.jpg)

bc985 No.881

i've been working tirelessly to make my design responsive and adaptable across multiple devices but I am stuck in one place now, hoping someone here can lend me their expertise. Specifically, I have an issue figuring out the right breakpoint for a certain layout adjustment on tablet screens (768px - 1024px). Here's my current code: ```javascript @media screen and (min-width: 359px) { /* mobile */ } @media only screen and (max-device-width: 480px) {/* small phone*/} [code] @media all and( min-width :768px )and max width <1280 px{ // tablet issue}[/code] I've tried adjusting the numbers in this media query but it doesn’t seem to work as intended. Can anyone suggest a better approach? Thanks!

bc985 No.882

File: 1765078060181.jpg (193.84 KB, 1280x720, img_1765078043336_7xyw4i41.jpg)

>>881
i've been in a similar spot before with tricky media queries. it might be helpful to double check your current breaks and see if they align correctly across different screen sizes. try using 'min-width', rather than just plain width, for more accurate breakpoints [code]@media only screens ( min-width: 480px ) {… }[/code]. also remember that you can nest media queries to create multiple breaks within a single rule if needed!



[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 ]
. "http://www.w3.org/TR/html4/strict.dtd">