Solved

slider image getting cut off

Posted on 2016-08-08
1
40 Views
Last Modified: 2016-08-09
My homepage is here, and my image in the middle is getting cut off.
I want my whole image to show.
http://butterflydg.com/central-care/

any idea what i have to change?
0
Comment
Question by:rivkamak
1 Comment
 
LVL 21

Accepted Solution

by:
Kim Walker earned 500 total points
ID: 41748227
The image is absolutely positioned. Therefore it doesn't give its parent any depth. It was difficult to determine what actually was giving it depth as I was searching for descendant element with a height value and there were none. So it took me a while to figure out that the only thing contributing to the image's parent's height was the padding of the section element which is the immediate descendant of the div that follows the image.

That section has no space consuming descendants, so the combined top and bottom padding of the section element makes up the entire height of the image's parent element. That section element also has multiple classes, each of which assigns top and bottom padding to the element. Apparently those classes are selectively activated in response to the size of the screen it is being displayed on (responsive design). This is the element I'm referring to:
<section class="section-68 section-sm-top-125 section-sm-bottom-152 section-lg-top-152 section-lg-bottom-235">

Open in new window

The numbers in these class names corresponds to the pixel height of the top and bottom padding. The last two are for large screens and assign a top padding of 152 pixels and a bottom padding of 235 pixels. Since there are no other height generating elements, the total height of this section element is 387 pixels (152+235=387). You would need to change the last two classes to affect the height on a large screen. I'm not sure what classes you have available to you.

Alternatively, if you have a custom stylesheet, you could adjust the height of the image's parent div so it isn't cutting off the bottom of the image.
.swiper-slide { height: 500px; }

Open in new window

This, however, would not be responsive. It would be the same height on all screen sizes.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now