vdw / HideSeek

A simple, mobile-friendly, yet customizable quick/live search jQuery plugin.
http://vdw.github.io/HideSeek
Apache License 2.0
429 stars 74 forks source link

CSS issues when using hidden mode #43

Open patmccormick opened 7 years ago

patmccormick commented 7 years ago

Great library!

I'm using div & spans in my layout. If I add border, padding or margin to the div, it becomes visible on the page, even when there is no search and no results.

Hidden mode hides each of the nested span tags, but the parent list div remains visible. This presents a problem for CSS because there is no way to format the list container with border, margin, or padding, without having it affect the page when there are no results yet.

Would it be possible to add a visibility toggle to the parent element based on whether there were any found results? If the parent list div would toggle to hidden when its empty it would greatly simplify CSS formatting.