Aligning parameters?

Hi, just curious as I cannot find it in the docs (and I’ve explored most functions), are there any text/object aligning/spacing parameters, or do I have to address this with various

's using New-UDElement?

Attempting to add various padding/spacing as well as align text and buttons within their New-UDColumns.

Any help is appreciated!

After playing around with it, I was able to align text and buttons using New-UDElement.

New-UDElement -Tag ‘p’ -Attributes @{‘class’=‘center-align’} -Content {‘Centered Content’}

Woohoo!

4 Likes

I was trying to figure this out and here it is! Thank you friend. I’m glad I found this forum.

1 Like

No problem! I found it by looking through the docs at https://materializecss.com. This is the framework used so I BELIEVE you could use other helpers, as well as some components. There are probably limits though…

Hey @RandallEverhart and @aggiebeckett if you want some padding at the top of your page, so there is some space between the content and the navigation bar at the top, add this at the top of your page code:-
New-UDElement -Tag “div” -Attributes @{
style = @{
paddingTop = “160px”
}
}

Just adjust the px to the size you want.

1 Like

Absolutely @psDevUK! Thanks for the input!