[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

slider image getting cut off

Posted on 2016-08-08
1
Medium Priority
?
95 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

834 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