From 747d1b50006892d11753580855c013afec792e80 Mon Sep 17 00:00:00 2001 From: Selina Date: Mon, 29 Oct 2018 17:28:44 +0100 Subject: [PATCH] =?UTF-8?q?logo=20ver=C3=A4ndert=20sich=20bei=20hover?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/main.css | 22 ++++++++++++++++++---- index.html | 4 ++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/css/main.css b/css/main.css index 977eb5a..ca3a3bc 100644 --- a/css/main.css +++ b/css/main.css @@ -8,12 +8,25 @@ .topnav ul { - background-color: greenyellow; + display: flex; + flex-direction: row; + align-items: flex-end; + justify-content: flex-start; + background-color: gray; } .topnav li { - display: inline-block; - align-content: center; + margin: 5px; +} + +.pic{ + display: block; + height: 75px; + transform: translateY(-80px); +} + +.pic:hover { + transform: unset; } /* Style the links inside the navigation bar */ @@ -41,7 +54,8 @@ h1 { font-weight: bold; font-family: 'Roboto', sans-serif; - + font-size: 26px; + margin: 10px; } diff --git a/index.html b/index.html index b35a4a8..cb4d15c 100644 --- a/index.html +++ b/index.html @@ -18,8 +18,8 @@