+ 1
Inserting an image
Anyone help me with a bit of code. Still learning and I can’t for the life of me figure out why this isn’t working. Looks like this <div> <p class=“image1”><img src=“image.jpg” alt=“This image cannot be displayed”/> </p> </div> Cheers.
7 odpowiedzi
+ 1
Thank for this tutorial ! =)
+ 1
Maybe the reference to the image file is incorrect? Make sure the file is in the same folder as the html file.
+ 1
you can use an event listener in javascript to wait for the keypress, and then change the style properties of the element on the screen that you want to change.
A mouseclick might be a bit easier though, that’s probably possible with a pseudo element in your CSS.
+ 1
Just add some CSS:
/* mouse over link */
a:hover {
border: 1px solid white;
}
/* selected link */
a:active {
border: 1px solid white;
}
Choose the right border style, color etc. and add it to the stylesheet
0
still doesnt work. i must be doing somethinf obviously wrong
0
is there anyway to get the border to ‘light’ up on a keypress?