I’m trying achieve an effect in which the image I am displaying is displayed within a computer screen. So basically, there’ll be an image of a computer screen and my image within the screen.
What I am about to do is use photoshop to display the whole thing as a single image. But this is not really scalable. The other idea I had was to create CSS border images of the computer screen, however this sounds a bit involved, I am looking for a quick thing.
I know I’ve seen this effect on plenty of websites (but I can’t remember the name of any to check the source), and I really feel there might be a ready-to-use solution to achieve that. Does such a ready-to-use solution exists or can you think of a simple way to achieve that ?
3
Answers
This can be achieved by using CSS positioning methods. Here is an example you can use.
JSbin Demo
Not sure if this I got you right, but here is a little demo of a MacBook Pro screen with a grumpy cat on it. Is this the kind of result you want to achieve? (EDIT: take a look for snippet #2 for the whole body (use the “full-page” view for a better result) )
Screen only
Screen + body
Create a computer image say(500×500)px with its screen transparent(blank) and export it as png with transparency on.
Then export you another image with same resolution.
And then you css position to place them on each other.