Solved

slider image getting cut off

Posted on 2016-08-08
1
67 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 22

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SVG and IE11 2 19
CSS - how to make button/link change to black on hover? 2 18
aria difference 2 15
boostsrap 1 10
This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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)
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 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