From 1778ec2cb67a7858b5d28c924ca9b70cfc1c9ea8 Mon Sep 17 00:00:00 2001 From: Robert McGovern Date: Sat, 11 Sep 2021 15:43:20 +0100 Subject: [PATCH] further tweak to profile pic --- .../newbie/profile-card-component/css/style.css | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/FrontendMentor/newbie/profile-card-component/css/style.css b/FrontendMentor/newbie/profile-card-component/css/style.css index 4708032..3e001b6 100644 --- a/FrontendMentor/newbie/profile-card-component/css/style.css +++ b/FrontendMentor/newbie/profile-card-component/css/style.css @@ -67,12 +67,22 @@ body { width: 96px; height: 96px; - border: 5px solid #FFFFFF; border-radius: 50%; - /* left: calc(50% - 96px/2); */ top: calc(100% - 96px/2); } +.photo:after { + border-radius: 50%; + padding: 5px; + border: 5px solid white; + position: absolute; + content: ''; + top: -5px; + left: -5px; + bottom: -5px; + right: -5px; + } + .nameAndAge { margin-top: 4.5rem; display: inline-flex;