Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Button Position Relative to Background Reply To: Button Position Relative to Background

#247475
Alex Zaworski
Participant

If I’m understanding everything correctly canvas seems like it’d be tough here. If it were me, I would export the logo with the buttons already drawn as an SVG, drop it inline into your document, and add event listeners/hover styles on the buttons by assigning IDs/classes to them. Then you can just scale it like you would an image and it’ll all work fine.

There are quite a few good articles on SVG on this site (and elsewhere) so if you’re not familiar at all I’d spend some time reading up.

That’s all assuming you have access to an Illustrator (or comparable) file for the logo— might be outta luck on that front otherwise.

Here’s a super simple demo (without any click handlers).