Changing the default background color (#ccccff) for .orbit-container in foundation 5

StackOverflow https://stackoverflow.com/questions/23285285

  •  09-07-2023
  •  | 
  •  

문제

In Zurb Foundation 5, does anybody know how to change the default orbit container background of blue without going into app.css to change the background property for .orbit-container class?

The default code for orbit slider does not explicitly state .orbit-container, so it doesn't seem possible to change it inline.

Any ideas?

도움이 되었습니까?

해결책

OK I did it myself.

Make a super <div> element to include that particular section and give it an ID. Then in CSS, do

.orbit-container  #(Given ID)
{
 background:(arguments)
}

This will help you change the orbit-container background for just the particular section (marked by ID).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top