I'm currently working on my debut website and I’ve encountered a minor setback with the meta
tag. It seems to be defining a fixed width instead of adapting to the device screen, which is hindering my CSS animation endeavors. Most of the design displays fine on mobile devices, but when it comes to centering certain elements, things get a bit tricky. Using percentage-based centering results in aligning it based on the set width of my viewport rather than the actual device width. While I understand this isn't a technical bug, it does make me wonder if there's a way to obtain the device width without explicitly setting it as the viewport, so I can accurately calculate the left
attribute for centering. Any suggestions would be greatly appreciated. Thank you!
I haven't included any code here since I'm not facing any technical glitches, just seeking guidance on how to achieve a specific functionality.