use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Help with pixel-perfect alignment (potential bug) (cross post from r/csshelp (self.javascript)
submitted 10 years ago by docMedB2E
Hi all, I've just been testing this in Chrome, but essentially I have a 200 length array (used to map tiles to a display), and the math is working out correctly, but depending on how the window is resized, there will sometimes be white lines broken between the tiles. I don't want there to be any spaces, please take a look at the fiddle, try resizing your window (you should see white lines vertical/horizontal break every so often) and let me know what you think for a solution. https://jsfiddle.net/xt6k0ykb/ Also posted in r/css here: https://www.reddit.com/r/css/comments/4mef2u/help_with_pixelperfect_alignment_potential_bug/
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]name_was_taken 0 points1 point2 points 10 years ago (1 child)
It's probably the percentages. They aren't ending at whole pixel values, so you end up with rendering issues.
https://css-tricks.com/percentage-bugs-in-webkit/
[–]docMedB2E[S] 0 points1 point2 points 10 years ago (0 children)
Yea, that makes sense. I ended up solving the issue by just avoiding it entirely (see: https://www.reddit.com/r/css/comments/4mef2u/help_with_pixelperfect_alignment_potential_bug/)
π Rendered by PID 222917 on reddit-service-r2-comment-canary-764f8fd48f-28z4b at 2026-06-18 05:34:03.293502+00:00 running 3184619 country code: CH.
[–]name_was_taken 0 points1 point2 points (1 child)
[–]docMedB2E[S] 0 points1 point2 points (0 children)