Text on line by itself #186
Replies: 1 comment
-
New-HTMLContainer/New-HTMLSection is not always required. It depends on situation. New-HTML -Name 'Test' -Show {
New-HTMLSection -HeaderBackGroundColor '#F38F1B' -Direction column {
New-HTMLText -Text "Section-heading" -FontSize 20 -FontWeight bold -Alignment center
New-HTMLText -Text "Section-heading" -FontSize 20 -FontWeight bold -Alignment left
New-HTMLTable
New-HTMLSection -Direction column {
New-HTMLText -Text "Test"
New-HTMLText -Text "Test"
New-HTMLText -Text "Test"
New-HTMLText -Text "Test"
New-HTMLText -Text "Test"
New-HTMLTable
New-HTMLSection {
New-HTMLTable
New-HTMLText -Text 'test'
}
New-HTMLSection {
New-HTMLTable
New-HTMLContainer {
New-HTMLText -Text 'test'
New-HTMLText -Text 'test'
}
}
}
}
} Direction defines how Flex elements (section/container/panel and so on) are positioned. Row based, column based, reverse column, reverse row. This gives you some options to play with. Hope this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PrzemyslawKlys
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe this is super simple, I don't know, but I am having a tough time figuring it out. I'd just like to have text inside a section/panel display on its own line, with content appearing below it.
In the below example, "Section-heading" should be on its own line which spans the entire orange section, and the blue 'test' section should start underneath that line. It doesn't necessarily need to be centered, but to have that option would be nice. It would also be great to be able to have this same configuration with multiple sections/panels below the span of text.
Example code:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions