I am new to CSS, I am working on an application where I want to remove/hide the hyperlink from the header of the webpage. I clicked on the "inspect element" on the header and found the below code-
<a class="app-header-horizontal-navbar__text" data-bind="text: link.text, attr: {
title: link.text,
href: link.url,
'aria-label': link.text
}" title="Careers & MyHR" href="https://oracle.fa.ocs.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1" aria-label="Careers & MyHR">Careers & MyHR</a>
I want to apply CSS so that I can remove the hyperlink when we click on "Careers & My HR" on the page. I tried the below but it didnt work and the page is the same:
.app-header-horizontal-navbar__text .input-row [data-qa="Careers & MyHR"] { display: none;
}.app-header-horizontal-navbar__text .input-row label[for^="Careers & MyHR-"] {
display: none;
}
.candidate-links {
display: block;
margin: 60px auto 0;
visibility: hidden !important;
}
Can someone help ?
2
Answers
The class name you given for the element not matching with the CSS style definition.
.app-header-horizontal-navbar__text – this is the className
Try this CSS code:
Or if you want to remove/hide entire element use this:
I think, you need to use
:active
.https://developer.mozilla.org/en-US/docs/Web/CSS/:active