Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In D7, I've created a custom content type to which one can attach multiple images and am trying to get Deco to display it in a grid-like form instead of stacking them vertically. Could someone paste the CSS to alter field-items such that it displays in a grid. I've attempted to change it but the only thing which achieves any effect is display: inline which doesn't render in Firefox.
Comments
Comment #1
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi,
I created custom css file i.e. 'local.css' and added following line of code in 'deco.info' file
stylesheets[all][] = local.css
I added one cck image field, named 'field_small_image'. and then added following css code in local.css file. (Please replace 'field_name_image' with 'field-YOUR-FIELD-NAME').
Please Clear Cached data
HTH !!
Rgrds,
Deepika Chavan.
Comment #2
c31ck CreditAttribution: c31ck commentedAs a solution is provided here and this is not really an issue with Deco, I'm marking this as fixed.
Comment #3
nevets CreditAttribution: nevets commentedThe Display Suite module would be another possible approach.