Skip to content

Commit cdda0ef

Browse files
committed
README tweaks
1 parent d702f77 commit cdda0ef

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,21 @@ use CSS::Units :pt;
1212
use CSS::Properties;
1313
1414
my CSS::Properties() $css = "color:red !important; padding: 1pt";
15+
16+
say $css.color.hex; # (FF 00 00)
1517
say $css.important("color"); # True
16-
$css.border-color = 'red';
1718
19+
$css.border-color = 'blue';
20+
21+
# set all four margins individually (top, left, bottom, right)
1822
$css.margin = [5pt, 2pt, 5pt, 2pt];
19-
$css.margin = 5pt; # set margin on all 4 sides
23+
# set a common margin on all four sides
24+
$css.margin = 5pt;
2025
2126
# set text alignment
2227
$css.text-align = 'right';
2328
24-
say ~$css; # border-color:red; color:red!important; margin:5pt; padding:1pt; text-align:right;
29+
say ~$css; # border-color:blue; color:red!important; margin:5pt; padding:1pt; text-align:right;
2530
```
2631

2732
Classes in this module

0 commit comments

Comments
 (0)