Solved

slider image getting cut off

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

831 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