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.
kotlinx.css for KMP
Define a nested style
Report a typo
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 {
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.