From b7434fb205e5c9dcb1c6867d5ba74e2443ef891c Mon Sep 17 00:00:00 2001 From: Peter Howell Date: Thu, 28 Aug 2025 05:59:24 +0000 Subject: [PATCH] ec2 style --- ex4.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ex4.html b/ex4.html index 318ea9e..a38b00c 100644 --- a/ex4.html +++ b/ex4.html @@ -129,12 +129,13 @@ 'height': 'label', 'padding': '12px', 'text-opacity': 1, /* show built-in text for EC2 */ - 'text-margin-x': 0, - 'text-margin-y': 0, 'text-wrap': 'wrap', - 'text-max-width': 220, - 'text-valign': 'top', - 'text-halign': 'left' + 'text-max-width': 240, + 'text-halign': 'center', /* place label inside node */ + 'text-valign': 'center', + 'text-justification': 'left', /* left-align lines within block */ + 'text-margin-x': 0, + 'text-margin-y': 0 }}, { selector: 'node[type = "rds"]', style: { 'background-color': '#dcfce7','border-color': '#10b981' }}, { selector: 'node[type = "sg"]', style: { 'background-color': '#fff7ed','border-color': '#f59e0b' }},