White in middle of Accordion - JQuery

Why is there a giant white space in the middle of my accordion content?

This is how I have my .css, and it works completely with the exception of the white space in the middle.

#accordion .ui-accordion-content {
    background-color: #dcaf4d;
    color: #42dc86;
    font-size: 12pt;

Here is an example of the white space:


And before you ask, What is causing this white box inside my Jquery Accordion? does not solve the problem.


It's caused by this:

.ui-widget-content {
  border: 1px solid #AAA/*{borderColorContent}*/;
  background: #FFF/*{bgColorContent} url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/;

It's in the jquery-ui.css file around line 246.

An alternative is to change your own CSS. Try changing this:

#accordion .ui-accordion-content {
    background-color: #777;

to this:

#accordion .ui-accordion-content {
    background: #777;

It is because the default background is assigned by an background image so setting it to none should solve it

#accordion .ui-accordion-content {
    background-image: none;
    width: 100%;
    background-color: #777;
    color: #000;
    border: none;
    font-size: 10pt;
    line-height: 15pt;

Demo: Fiddle

Need Your Help

MediaFormatter or ModelBinder for web api PUT method

asp.net asp.net-mvc asp.net-web-api asp.net-web-api2 model-binding

I have a PUT method in web api which accepts a JSON data and a route data as follows.