From d1c34dde7b659433027413074bc45426ee1e711e Mon Sep 17 00:00:00 2001 From: suzan Date: Tue, 21 Mar 2023 16:34:19 +0300 Subject: [PATCH] margins and size --- carddeck1/cards.json | 10 +++++----- carddeck1/stylesheet.css | 19 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/carddeck1/cards.json b/carddeck1/cards.json index 5b511bc..8ffb86b 100644 --- a/carddeck1/cards.json +++ b/carddeck1/cards.json @@ -25,24 +25,24 @@ "image": "4.jpg" }, { - "name" : "body", + "name" : "Resistance", "text" : "Some text of this card", - "image": "4.jpg" + "image": "11.jpg" }, { "name" : "body", "text" : "Some text of this card", - "image": "4.jpg" + "image": "10.jpg" }, { "name" : "body", "text" : "Some text of this card", - "image": "4.jpg" + "image": "9.jpg" }, { "name" : "body", "text" : "Some text of this card", - "image": "4.jpg" + "image": "7.jpg" }, { "name" : "body", diff --git a/carddeck1/stylesheet.css b/carddeck1/stylesheet.css index 0670248..7b9d327 100644 --- a/carddeck1/stylesheet.css +++ b/carddeck1/stylesheet.css @@ -1,20 +1,19 @@ .card { - width: 70mm; - height: 95mm; - border: solid 1px black; + width: 8.5cm; + height: 13.5cm; + border: solid 3px black; border-radius: 10px; - box-shadow: 5px 5px 0px gray; float: left; - margin: 2mm; position: relative; + margin: 2mm; } .card > p.image > img { - width: 50mm; - height: 50mm; + width: 8.5cm; + height: 12cm; position: absolute; - top: 30mm; - left: 10mm; + top: 15mm; + border-radius: 10px; } .card > h2{ top: 5mm; @@ -40,5 +39,5 @@ left: 5mm; right: 5mm; text-align: center; - font-size: 8; + font-size: 6.5; } \ No newline at end of file