How can I change the circles which appear on Carousel widget to square shape?

skodu
Giga Contributor

HI

Down the carousel widget, there will be circles appearing which depict the order of images. How can I change it to Square shape and also how can I move those dots to end of slide?

Thanks,
Sharan

1 ACCEPTED SOLUTION

dvp
Mega Sage
Mega Sage

Use the below css in Carousel widget



.carousel-indicators li {
      display: inline-block;
      width: 48px;
      height: 48px;
      margin: 10px;
      text-indent: 0;
      cursor: pointer;
      border: none;
      border-radius: 10%;
      background-color: #0000ff;
      box-shadow: inset 1px 1px 1px 1px rgba(0,0,0,0.5);      
  list-style-type: square;
}


.carousel-indicators .active {
      width: 48px;
      height: 48px;
      margin: 10px;
      background-color: #ffff99;
}



Here is the screenshot with the above CSS values


find_real_file.png


View solution in original post

14 REPLIES 14

In general it is not a best practice to give properties directly to div, instead use either a class or id so that the css properties will not apply to all DIV's


div


{


     


      width:473px;


      height:37px;


      top:-40%;


      left:50%;


     


}



With the above values did you get what you are trying to achieve


skodu
Giga Contributor

Nope I din achieve. I want to reduce the size of search bar to height:30px and width:400 px. What is the best way to do DVP?


Right click on the homepage then you will find inspect element


find_real_file.png


Identify which div you want to change and update the css properties



By   the way I'm using Mozilla browser


skodu
Giga Contributor

I tried inspecting and let me post the screenshot.


Angular 1.png


So What should I change the CSS part? Sorry for troubling you DVP



Thanks,
Sharan


Here is the example for how to edit css properties using class


CSS .class Selector



Define a new DIV above that statement in typeahead search widget and modify the properties


find_real_file.png