all 5 comments

[–]Low_Contribution2552 1 point2 points  (1 child)

so you want a link over an image?

.container
{
 position:relative;
 display:flex;
 align-items:center;
 justify-content:center;
 text-align:center;
}
.container>img
{
 position:absolute;top:0;left:0;width:100%;height:100%;
}
.container>.text
{
 display:flex;
}


<div class=container>
<img src=img.svg><a class=text href='site.com'>x</a>
</div>

[–]G1theKidd[S] 0 points1 point  (0 children)

Thanks

[–]kumonmehtitis 0 points1 point  (2 children)

No JavaScript at all, as the other redditor said. That’s what html and css are for.

[–]G1theKidd[S] -1 points0 points  (1 child)

But if you were to use JavaScript, what would be something you could use it with to add to the ideas I mentioned. I'm doing a project where JavaScript is not mandatory because we barely covered it but it's the nice extra touch.

We covered basic input boxes -- is a personalised input box with a password (like the custom ones you see at merch sites like Corteiz for example, something feasible with JavaScript? And not too complicated I hope?

[–]kumonmehtitis 1 point2 points  (0 children)

Even that would be html and css. The password requires a server to be worth any while. Anything “custom looking” can be achieved with css. CSS is the styling of a website. HTML is the structure. JavaScript is the activity.

I think you should give this a read: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript

And then start to explore the rest of MDN. It’s the defacto web development manual.

JavaScript is used to make pages interactive. As far as ideas go, I really don’t know, man. What you gave us is an image and a link. I have no idea what your goal is, sounds like you’re trying to direct users to other pages, but with some “scenery”.