Title: Responsive Breakpoint based on container width, not browser width
Last modified: May 24, 2023

---

# Responsive Breakpoint based on container width, not browser width

 *  Resolved [roxanel](https://wordpress.org/support/users/roxanel/)
 * (@roxanel)
 * [3 years ago](https://wordpress.org/support/topic/responsive-breakpoint-based-on-container-width-not-browser-width/)
 * Hi there
 * Some galleries on my site do not take up the full width of the page. For example,
   I might have a gallery that sits in a div that only takes up 50% of the page,
   so it would need to break down to 2 columns faster than a full width gallery.
 * Because of this I need to be able to set responsive breakpoints for different
   container widths, not the browser width for everything. Is this possible?

Viewing 1 replies (of 1 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years ago](https://wordpress.org/support/topic/responsive-breakpoint-based-on-container-width-not-browser-width/#post-16780615)
 * Hey.
 * Technically, in CSS there is no (yet) possibility to set the breakpoints based
   on container width. So, we also don’t have a solution.
 * I think it can be resolved with custom CSS or JS, but we don’t have it.
 * Regards, nK.

Viewing 1 replies (of 1 total)

The topic ‘Responsive Breakpoint based on container width, not browser width’ is
closed to new replies.

 * ![](https://ps.w.org/visual-portfolio/assets/icon-256x256.png?rev=2389881)
 * [Visual Portfolio, Photo Gallery & Post Grid](https://wordpress.org/plugins/visual-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-portfolio/reviews/)

## Tags

 * [breakpoint](https://wordpress.org/support/topic-tag/breakpoint/)
 * [columns](https://wordpress.org/support/topic-tag/columns/)

 * 1 reply
 * 2 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/responsive-breakpoint-based-on-container-width-not-browser-width/#post-16780615)
 * Status: resolved