Title: Conditional Styles
Last modified: August 19, 2016

---

# Conditional Styles

 *  [jedifunk](https://wordpress.org/support/users/jedifunk/)
 * (@jedifunk)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/conditional-styles/)
 * Hey all;
 * I’m building a portfolio site and have created a Custom Post Type called “Selected
   Works”. On the page it displays 3 images (using featured image) in a row, and
   when an image is clicked it runs Fancybox.
 * I have a custom Loop that is pulling in the Featured Image, Title, and Content
   of each Selected Work.
 * What I’m having trouble solving is how I can get the whole thing to center. Part
   of the issue is that I’m using a fluid layout, so there is no fixed width for
   the DIV to use `margin:auto`.
 * I’ve attached a screenshot ([here](https://files.me.com/lil_jedi/7g2y8n)), and
   would appreciate any help. Thanks in advance.

Viewing 1 replies (of 1 total)

 *  Thread Starter [jedifunk](https://wordpress.org/support/users/jedifunk/)
 * (@jedifunk)
 * [15 years ago](https://wordpress.org/support/topic/conditional-styles/#post-2062517)
 * still working on this sadly.
 * my problem right now is that when the screen drops to 1024 wide or less, the 
   gallery items don’t reflow with appropriate margins.
 * You can view the site [here](http://bryceflory.com/). Just scroll down to the
   gallery.
 * As the browser is resized I can’t get the margins to auto flow. Currenlty they
   are hard set in the CSS at 35px, but I’d like to get this to properly flow and
   dynamically.
 * Appreciate any thoughts.

Viewing 1 replies (of 1 total)

The topic ‘Conditional Styles’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jedifunk](https://wordpress.org/support/users/jedifunk/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/conditional-styles/#post-2062517)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
