Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Overflow issue. The site keeps scrolling and scrolling… Reply To: Overflow issue. The site keeps scrolling and scrolling…

#253279
Atelierbram
Participant

Everything that is new in CSS is usually not supported in all browser so I don’t like to use it.

I don’t think you get my point.

@supports (display: grid) {

  .container-grid {
    display: grid;
    grid-template-columns: /* grid stuff */
  }

}

This @supports (display: grid) { /* stuff */ } is the @supports feature test media-query: it only targets browsers who do understand the new CSS grid layout module. Hence my remark about “having your cake and eat it too“; one can leave the rest of the layout in the CSS as it is, everything within the @supports feature-query will override it, but only for the newest up-to-date browsers: the old browsers won’t be affected by it.