menu
Channels
# All channels
view-forward
# General
view-forward
# Announcements
view-forward
# Feedback
view-forward
# Guides
view-forward
# I Made This
view-forward
Team

Squashed Newspaper article about me in the "Features" section fix?

October 4, 2019 at 12:13am

Squashed Newspaper article about me in the "Features" section fix?

October 4, 2019 at 12:13am
I have an article about me that I want to post in the "features" section but the 800 x 600 size makes it fat and short. The article is more long than wide 600x800 - how do I override the image parameters for a particular feature and not all of them. The others scale just fine. You can see what is going on at
under the Features section. The first two are the problems ones.....
Appreciate ANY ideas how to manipulate this in DivJoy? Loving it so far but still trying to implement the flexible framework for specific edge cases.... Thank for any help on this!
Jeremy

October 5, 2019 at 6:30pm
Hey Jeremy, here's how I'd do that: 1) On the Features component update each item in the array with width and height values. 2) Use those values in the .image inline style object like so:
{
style: {
width: item.width,
height: item.height
}
}
3) Remove the max-width style from the stylesheet for .image
I haven't tested this, but it should work! Let me know if you run into any trouble. Basic idea is to specify those values in JS instead of in the stylesheet so they can be different for each item.
Edited
  • reply
  • like
thanks Gabe. Will test this out....
like-fill
1
  • reply
  • like