Title: Problem with css layout
Last modified: June 28, 2026

---

# Problem with css layout

 *  [javiruli2](https://wordpress.org/support/users/javiruli2/)
 * (@javiruli2)
 * [6 days, 7 hours ago](https://wordpress.org/support/topic/problem-with-css-layout-2/)
 * I am currently building a website in WordPress and I am having an issue with 
   a photo gallery plugin. The plugin does not seem to respect the styling rules
   I have set for the image layout. The design requires four images per row, each
   with its own margins and spacing.
 * However, the images are being displayed in a single vertical column instead of
   a grid layout. I suspect this issue is caused by inserting the gallery shortcode
   inside a custom block created with Elementor, which may be overriding or interfering
   with the plugin’s CSS and layout structure.
 * As a result, the gallery is not rendering as expected, and the responsive grid
   layout is being lost.
 * Thanks in advance!
    -  This topic was modified 6 days, 7 hours ago by [javiruli2](https://wordpress.org/support/users/javiruli2/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-css-layout-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [mbsharp](https://wordpress.org/support/users/mbsharp/)
 * (@mbsharp)
 * [5 days, 7 hours ago](https://wordpress.org/support/topic/problem-with-css-layout-2/#post-18951508)
 * You may be exceeding the facilities of the plugin. A gallery display in the plugin
   is itself responsive ie, the number images per row adjusts to the width of the
   user’s screen less any sidebars. If you are already constraining the display 
   within a column in your theme, then the gallery should be responsive within the
   width of the column.
 * If you have more precise requirements, then you may be able to override the css
   of the gallery by explicit additions to your theme. To do that you need to check
   out the exact css terminology rather than just expect it to happen by itself.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-css-layout-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mbsharp](https://wordpress.org/support/users/mbsharp/)
 * Last activity: [5 days, 7 hours ago](https://wordpress.org/support/topic/problem-with-css-layout-2/#post-18951508)
 * Status: not resolved