- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 11:29 PM
I have customized carousel widget where I have reduced the height and now after implementing it I can see extra grey space only on the left side. How can we remove this. Any help would be appreciated.
Copied the below hard coded html content. Increasing the width is also not helping in achieving the same.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2019 03:17 AM
Clone carousel widget
In HTML part, type below code
<div class="pull-in">
<uib-carousel interval="options.interval">
<uib-slide ng-repeat="slide in ::data.slides" active="slide.active">
<div class="container">
<a href="{{::slide.url}}" title="Open carousel item">
<img ng-src="{{::slide.background}}" style="width:100%" role="presentation">
</a>
</div>
</uib-slide>
</uib-carousel>
</div>
In CSS, use below
.pull-in{
.carousel-inner > .item > .container {width: 100%}
}
Also, make sure the picture size to be 170px by 220px i guess (need to check)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 11:38 PM
Hi,
Can you please change the width attribute to 100% in your image tag? ie
style="width:100%;height:225px"
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 11:40 PM
If this dint work, increase the width of your container to 100% by changing the following line
<div class="container" style="width:100%">
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2019 12:06 AM
Seems like there is an additional margin add to the left of your parent div. Remove these widths, Right click on the carousel and click on Inspect element. You could see the same HTML and related styles. In the HTML part, click on the parent div ie class=pull-in and check the Sytles if there is any margin added to it.
Also you could try removing the class=pull-in, cant say much without looking into the CSS for this slider.