Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

slider image getting cut off

Posted on 2016-08-08
1
Medium Priority
?
89 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

618 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