Shape 5

Joomla Templates => Emma and Mason - Club => : ahuppert January 29, 2018, 09:55:36 AM



: Info Slide Height?
: ahuppert January 29, 2018, 09:55:36 AM
Does anyone know what the max height of an image can be using the Info Slide feature?  I have PNG files that are 300x300px and no matter what size I define them as, the bottom of the image continues to be clipped...  see the attached screen shot.  I set one of them to 200x200 and the other to the default 300x300. Both are clipped.


: Re: Info Slide Height?
: mikek January 30, 2018, 08:02:11 AM
Hello,

Please post a url.


: Re: Info Slide Height?
: ahuppert January 30, 2018, 10:56:08 AM
I figured out what the problem was.  I'm not sure what the purpose of it is, but within template.css, there appears the following code:
:
.pages_portfolio img {
  margin-bottom:-7px;
}

I added to the custom.css the following override:
:
.pages_portfolio img {
  margin-bottom:0px;
}

The problem is now fixed, but I was curious as to the intent of the original code?  Why add a negative margin when there is already a 5px margin and padding already added to the div housing the image in the first place?