From 518a38b92206203054eb4843cb939ae0ab341180 Mon Sep 17 00:00:00 2001 From: Manos Katsomallos Date: Fri, 5 Jan 2024 13:17:01 +0200 Subject: [PATCH] Disable text selection --- css/styles.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/css/styles.css b/css/styles.css index 562389b..4f53bb4 100644 --- a/css/styles.css +++ b/css/styles.css @@ -1,11 +1,6 @@ body, html { scroll-behavior: smooth; background-color: black; -} - -* { - padding: 0; - margin: 0; /* Disable text selection */ -webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */ @@ -13,6 +8,11 @@ body, html { user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Safari */ } +* { + padding: 0; + margin: 0; +} + body { margin: auto; max-width: 1080px;