Horst Walter
Horst Walter

Reputation: 14081

autocomplete style for jqGrid and jQuery

I am using CSS class ui-autocomplete (as explained in theming or here) to adjust my jQuery / jqGrid style. Works fine for the font size, but not for line-height.

The line-height is still 1.5 (want 1.0), as of the CSS matching in .ui-menu .ui-menu-item a. I do not want to override the global jQuery css style, as it is used elsewhere.

As you can see below, the line-height is due to the li style, while my font-size change is applied to the surrounding ul element. What would be the easiest way to set the line-height only for this autocomplete?

CSS hierarchy

Upvotes: 1

Views: 263

Answers (1)

prava
prava

Reputation: 3986

Try to use !important for CSS property for line-height.

.ui-autocomplete {
    line-height: xx!important;
}

Upvotes: 1

Related Questions