Computer scienceProgramming languagesKotlinAdvanced featuresMultiplatform

kotlinx.css for KMP

Theory

Define a nested style

Report a typo

Rearrange the scrambled lines of code to define a function getCss that returns a CssBuilder. The CssBuilder should apply a style such that within a section, a div should have a background color of red.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                "div" {
              
                fun getCss(): CssBuilder {
              
                }
              
                }
              
                backgroundColor = Color.red
              
                }
              
                }
              
                return nestedStyle
              
                "section" {
              
                val nestedStyle = CssBuilder().apply {
              
___

Create a free account to access the full topic