Is there an easier way to center the label in Xul and then with the following?
<xul:hbox> <xul:spacer flex="1" /> <xul:label id="myLabel" value="LABEL"/> <xul:spacer flex="1" /> </xul:hbox>
Yes. Use packaging through the pack attribute .
<hbox pack="center"><label id="myLabel" value="LABEL"/></hbox.
Two alternative ways to work with multi-line labels:
<label style="text-align: center"/>
<vbox align="center"><label/></vbox>
Source: https://habr.com/ru/post/1780216/More articles:c function of the function free () - cSampling a list with linq - c #Take from the list only the element that I just clicked and used it - jqueryCSS: resizing div to fit parents width - htmlJPD big problem in sleep mode - javaUnexplained Subversion Directory Status After Checking - svnManaging Git Users and Passwords - gitIs it possible to asynchronously call JavaScript functions in Windows Script Host? - asynchronoustypical duck typing in f #? - reflectionProblem with overlaying images in CSS in Google Chrome - cssAll Articles