0

hyper link but with no <a>

so i made hoverable Burton in css and It worked BUT when i put It on my site the text on Burton Is diffrent i set to normal test Is Black but After pointing mouse on Button color Is Black and text White. After i put It on website animation works but text Is Blue (like you Just made normal<a></a> how to repair It please help me)

13th Dec 2022, 2:17 PM
lamaq flop
lamaq flop - avatar
9 Antworten
+ 1
i dont think we can come up with a fix without looking at the code. Would you?
13th Dec 2022, 2:47 PM
arturop200
arturop200 - avatar
0
Arturop HTML: <div id="ok"> <a href="https://ogurek.pl"> <b id="potezne">potezne cos</b> </a> </div>
13th Dec 2022, 3:00 PM
lamaq flop
lamaq flop - avatar
0
Arturop css: #potezne { background-color:#4CAF50; border: none; color:black; padding:15px 32px; text-align:center; text-decoration:none; display: inline-block; font-size: 16px; margin: 4px 2px; transition-duration:1s; } #potezne {border-radius:8px;} #potezne:hover { border: none; background-color: black; padding:15px 32px; margin:4px 2px; display: inline-block; color:white; }
13th Dec 2022, 3:00 PM
lamaq flop
lamaq flop - avatar
0
Try applying the color to the anchor element as well
13th Dec 2022, 3:23 PM
Kondwani Bwenzi Ng'ombe
Kondwani Bwenzi Ng'ombe - avatar
0
And check for any syntax error before the #potezne
13th Dec 2022, 3:24 PM
Kondwani Bwenzi Ng'ombe
Kondwani Bwenzi Ng'ombe - avatar
0
the button works perfectly. who knows perhaps you are using the same id for other elements and has its own styles already defined, a problem with specificity and the cascade.
13th Dec 2022, 3:44 PM
arturop200
arturop200 - avatar
0
In your webpage CSS, your user agent style is using webkit. So your anchor tag is styled like this. a:-webkit-any-link { color: -webkit-link; cursor: pointer; text-decoration: underline; } You may override the styles with !important Example: a { color: black !important; }
14th Dec 2022, 12:15 AM
Chris Coder
Chris Coder - avatar
- 1
Element.onclick=function(){ Window.target.href=path; }
13th Dec 2022, 6:36 PM
Vettrivel N
Vettrivel N - avatar
- 1
password = int(input()) repeat = int(input()) def validate(text1, text2): if text1==text2: print("Correct") else: print("Wrong") validate(password, repeat)
15th Dec 2022, 12:51 PM
Sahil Maurya
Sahil Maurya - avatar