Check out Makruk (Thai Chess), our featured variant for March, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

How to Design and Post Your Own Game. A reference for those who want to post their own games here.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Fri, Mar 28 09:24 PM EDT in reply to Fergus Duniho from 11:22 AM:

One alternative to reducing the dimensions of the images would be to unpad them by cropping out surrounding white space, and it looks like showpiece.php can handle this.

I tried that, but the background color wasn't perfectly transparent, and the Alfaerie pieces looked misaligned. So I looked into other options, and the one I settled on was to use outline instead of border to highlight spaces. While using border expands the box size, using outline does not. So, if a piece is as large as the space, the outline will spill over into the surrounding spaces, but it will not expand the size of the space being highlighted. I could use outline-offset with a negative value to keep the outline within the confines of the space, but I need to know the dimensions of the piece to finetune it. I might also see if I could use outline with a negative outline-offset on the table cell, but I'll look into that tomorrow. Anyway, by using outline, the pieces don't have to be reduced in size. So they no longer are.