danieldsutter sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 957 | @mot01 |http://www.freecodecamp.org/mot01
joetinnyspace sends brownie points to @html-joe :sparkles: :thumbsup: :sparkles:
:cookie: 296 | @html-joe |http://www.freecodecamp.org/html-joe
kodemaster8 sends brownie points to @html-joe :sparkles: :thumbsup: :sparkles:
:cookie: 297 | @html-joe |http://www.freecodecamp.org/html-joe
:hover
on the li
?
.v-bar
blue when it's in the same li
as a hovered a
.
li > a:hover > .v-bar
should do it.
li:hover .v-bar
.
primuscovenant sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 2135 | @heroiczero |http://www.freecodecamp.org/heroiczero
<a class="btn btn-primary btn-xl js-scroll-trigger" href="#services">Find Out More <i class="fa fa-chevron-down" aria-hidden="true"></i></a>
.btn-xl {
padding: 1rem 2rem
}
.btn-primary {
background-color: #D5A021;
border-color: #D5A021;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
color: #fff;
background-color: #D5A021!important;
}
How can I make the blue outline colour be #D5A021;?
border-color: #D5A021;
but had no luck
li
), how do I know which of the link is clicked? Do I have to create an ID for each link? That sounds tedious with 1000 links, suggestions?
border-color: #D5A021;
it is indeed setting it to #D5A021
(you can check it in inspect element) but since its width is 0
you cant see.
this
? basically when you create an event listener for a link clicked, this
will represent the current link clicked
max = Math.max( ...arr );
Event.target
gives you the actual element that was clicked.
Target
is set to.
Event.target
will always point to the actual visible Element that was clicked. Event.currentTarget
is identical to this
, and is the element that the attached handler is firing from. Bubbling and Capturing will decide whether or not the event gets passed to multiple handlers, but if there's only one handler nothing changes.
target=_new
maybe?
jlandrian sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8853 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm