PaulJerimy / SecCertRoadmapHTML

Security Certification Roadmap HTML5/CSS3 version
Creative Commons Attribution Share Alike 4.0 International
525 stars 104 forks source link

Certification grid and Background grid misalign #17

Closed sinecurelife closed 2 years ago

sinecurelife commented 3 years ago

This chart uses two grids to draw the objects, one for the background (domain borders, title, and sub-domain shading) and one for the foreground (certification blocks).

The current code makes the chart align decently well at 1080p but uses vmax to resize to smaller or larger viewports. When resizing away from 1080p, the foreground objects sometimes overlap or underlap the background objects.

When adding new objects to the foreground, the foreground objects sometimes lose their alignment with the background and need to be tuned every update.

sinecurelife commented 2 years ago

I added the same "left" attribute to the certbg and certcontainer which solved a part of the alignment issue. Scaling on 1080p and 1440p monitors continue to be different the further from the left edge I view though.

sinecurelife commented 2 years ago

I don't know why, but things are lining up better in my most recent version. I'm going to close this because this is not a problem if the chart is just less cluttered, therefore giving each element more space to breath.

The only changes I made were:

One or all of those changes could have helped for some reason.