The bug appeared when testing on iOS 7 but not iOS 8, which suggested the root cause might be a floating point error with the constraint layout library.
Embedded systems for hobbyists is a lot larger than the world of Arduino. New and interesting projects will open up to you once you explore other platforms.
A good semantic model cuts across a single layer of abstraction. If two things have the same structure and info hierarchy, they should share a CSS class.