Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
@supports Rule in CSS3
#1
Description:

The @supports rule allows you to apply styles based on whether a specific CSS feature is supported by the user's browser.

Example:

@supports (display: grid) {
  body {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@supports not (display: grid) {
  body {
    float: left;
    width: 50%;
  }
}
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)