Extending carousel widget to full width of the page

davilu
Mega Sage

Hi Experts,

I'm trying to get the carousel widget to fill the entire width of our page.   How do i get rid of all the white space on the left and right of the carousel?   If this was a regular banner, I would just designate an image as the background image, but I don't think that's possible with the carousel:

find_real_file.png

1 ACCEPTED SOLUTION

Try adding this second line.



.full-width {width: 100%}


.carousel-inner > .item > .container {width: 100%}


View solution in original post

6 REPLIES 6

danpatino
Tera Expert

I did this in a POC.   I'm not sure if this is the 'right' way to go about doing this but I copied the Carousel widget, modified the HTML template so the image had a class, then modified that class to have a width of 100%.   That got me 85% of the way there but then I needed to remove padding and alter the arrows and shadows also with CSS.  


Woops...I left something important out.   Change the width setting on your container to 'Fluid'.



find_real_file.png


Hi Dan, thanks for the suggestion.   I gave the image a class and then gave it full width:



.full-width {


        width:100%;


}



However, nothing changed for me...


Try adding this second line.



.full-width {width: 100%}


.carousel-inner > .item > .container {width: 100%}