Files
textual/docs/examples/styles/text_align.css
Rodrigo Girão Serrão 042bc3b3fe Improve text-align example.
Replace statics with labels; change to a 2 x 2 grid layout to make it easier to see the difference between 'center' and 'justify'; increase readability by setting 'color: auto' in the labels.
2023-01-06 10:41:46 +00:00

30 lines
342 B
CSS

#one {
text-align: left;
background: lightblue;
}
#two {
text-align: center;
background: indianred;
}
#three {
text-align: right;
background: palegreen;
}
#four {
text-align: justify;
background: palevioletred;
}
Label {
padding: 1 2;
height: 100%;
color: auto;
}
Grid {
grid-size: 2 2;
}