From 8427682b37bae547b6b972e8fa0991bc86ed9db5 Mon Sep 17 00:00:00 2001 From: pbg2h23akl Date: Thu, 29 Aug 2024 08:47:40 +0200 Subject: [PATCH] relative --- css/layout.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/css/layout.css b/css/layout.css index 382e411..8e92c6c 100644 --- a/css/layout.css +++ b/css/layout.css @@ -45,25 +45,26 @@ body{ } #rechnung1, #rechnung2 { width: 20%; - margin: 0 100px; padding: 20px; text-align: center; - font-size: 1.5em; z-index: 10; - position: fixed; + position: relative; display: inline-block; } #rechnung1{ background-color: rgb(0, 225, 255); border-radius: 15px; outline: 8px solid black; - left: 15%; + margin-left: auto; + margin-right: 100px; } + #rechnung2{ background-color: red; border-radius: 15px; outline: 8px solid black; - right: 15%; + margin-left: 100px; + margin-right: auto; } #rechnung1 img, #rechnung2 img { position: absolute;