79077211

Date: 2024-10-11 07:43:54
Score: 1.5
Natty:
Report link

Why don't you use CSS Custom Properties (variables)? Something like this:

    #outer {
      container: outer / size;
      --outer-width: 100%;
    }

    @container outer (min-width: 100px) {
      #content {
        width: calc(var(--outer-width) * 0.4);
      }
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why don't you use
  • High reputation (-1):
Posted by: AbsoluteBeginner