:cookie: 220 | @user-sarang |http://www.freecodecamp.com/user-sarang
img
, so I thought I would try a slightly different one, and this seems to work, too: $("a.button img").mouseover(function(){
it finds the child img
that is nested in that anchor tag.
@MohammadHasham - looking at your weather app. I think that it looks very nice. I have a few comments:
C / F
button, it doesn't do anything. After that, it works.<html>
and <body>
tags in your HTML panel. The Codepen template supplies those tags. You can make a body
CSS selector to fill in your background image. And you should also set background-size: cover;
because on a wide screen, your image started to repeat on the right hand sideIt looks great - just a couple little things, as I noted. Nice work!
Hey guys, I need some help figuring out how to get my logo to fit only the background of the #contactMe <div> and not the background of the whole page. Any ideas?
const setShowcaseImg = function() {
const thisProject = project[$(this).data("project")];
//gets the name of the project to later use it to fetch properties from that project
$showcaseImg.find("img").attr("src", thisProject.img);
//gets the url of the imagen and set it
$showcaseImg.find("p").text(thisProject.description);
//gets the description
$showcaseImg.find("a").attr("href", thisProject.url);
//gets the url
$showcaseImg.addClass("showcase-open");
// then it opens a div containing this info
}
I have something like this to showcase some images with text and a link but when i close the showcase div and activates it again with a different images it just takes like 30ms to actually change the image it work, but i can still see the previous image for like 20ms and that's not good :(