From 69253c7ae1155677aeb799ddd76e424dbecf4e6d Mon Sep 17 00:00:00 2001 From: Abhinay Singh <162811933+AbhinaySngh@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:49:35 +0000 Subject: [PATCH] flickering on service page fixed --- Css-files/services.css | 20 +- Html-files/services.html | 425 +++++++++++++++++++++------------------ 2 files changed, 240 insertions(+), 205 deletions(-) diff --git a/Css-files/services.css b/Css-files/services.css index 3562eccf..06c9bbd3 100644 --- a/Css-files/services.css +++ b/Css-files/services.css @@ -7,6 +7,13 @@ } +.section1 { + justify-content: center; + display: flex; + flex-direction: column; + align-items: center; +} + .section__title { font-size: 4em; font-weight: bold; @@ -16,12 +23,17 @@ animation: gradient-animation 3s infinite; } -.section__title:hover { - border-bottom: 3px solid rgb(138, 37, 37); +.section1>hr { + opacity: 0; + border-width: 2px; +} + +.section1:hover>hr { + border-bottom: 2px solid rgb(138, 37, 37); /* Add bottom border on hover */ - border-top: 3px solid rgb(138, 37, 37); + border-top: 2px solid rgb(138, 37, 37); width: 50%; - margin-left: 370px; + opacity: 1; } #active-page { diff --git a/Html-files/services.html b/Html-files/services.html index 74de5aad..9ef445a9 100644 --- a/Html-files/services.html +++ b/Html-files/services.html @@ -34,7 +34,8 @@