Jump to content

CSS border edges pixel-art style


Recommended Posts

Hi everyone I have divs in my game for speech bubbles. Right now I use images for the backgrounds which takes care of the borders. I want to be able to make the speech bubbles different sizes dynamically, however. The only way I can see of doing this whilst maintaining the strict scaled pixel art style is to use css borders.


Then, I have the border 1px if scaling is 100% and 2px if scaling is 200%, etc.


Only problem is a can't work out how to replicate the borders I have now with css (or css3).


Here is what I have right now as an image:




I'd be glad if anyone could help.


(I hope I posted this is the right place?)





Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...