문제

I am using a horizontal accordion based on this website:

http://www.marghoobsuleman.com/mywork/jcomponents/accordion-common/accordion.html

If you reduce the window size the accordion will wrap down; it will not fit inside the window.

Expected :

 <div></div> <div></div> <div></div>

On a large window size this works fine, but on reducing window size, it will display like this:

 <div></div>
 <div></div>
 <div></div>
도움이 되었습니까?

해결책

To prevent the divs from wrapping, you would really need to wrap the accordion itself in an element with defined width.

Add this to your CSS:

.accordionWrapper { width: 689px; }

다른 팁

It's because wrapper div automatically shrink when you reduce window's size. Set width on wrapper.

.accordionWrapper { width: 689px; }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top