From a022056bc9c1b15133a3d5e10613f2ce4f001a2c Mon Sep 17 00:00:00 2001 From: Manos Katsomallos Date: Fri, 5 Jan 2024 13:17:08 +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 a9111e7..6006958 100644 --- a/css/styles.css +++ b/css/styles.css @@ -5,11 +5,6 @@ body, html { padding: 0; scroll-behavior: smooth; background-color: black; -} - -* { - padding: 0; - margin: 0; /* Disable text selection */ -webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */ @@ -17,6 +12,11 @@ body, html { user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Safari */ } +* { + padding: 0; + margin: 0; +} + h1, h2, h3, h4, h5, p { padding: 0; margin: 0;