From e116d825e32f6cc77e5e45fe8b8e1190a0d62bf2 Mon Sep 17 00:00:00 2001 From: Manos Katsomallos Date: Fri, 5 Jan 2024 13:00:40 +0200 Subject: [PATCH] Disable text selection --- css/styles.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/css/styles.css b/css/styles.css index ff929d2..9ae255e 100644 --- a/css/styles.css +++ b/css/styles.css @@ -7,6 +7,15 @@ body, html { background-color: black; } +* { + padding: 0; + margin: 0; + /* Disable text selection */ + -webkit-user-select: none; /* Safari */ + -ms-user-select: none; /* IE 10 and IE 11 */ + user-select: none; /* Standard syntax */ +} + h1, h2, h3, h4, h5, p { padding: 0; margin: 0;