Hacker News new | ask | show | jobs
by pixelbath 2470 days ago
I've seen you post this particular issue twice in this thread. Perhaps it's not the scrollbars' fault that setting an element's width to 100vw (which is 100% of viewport width) usually requires a scroll? The scrollbars are a symptom that you are setting your child element width too high. Try 100% instead, which should make it 100% of the parent size.

If your intent is to set an element to 100% viewport width with no scrollbar, that's trivially easy to do without jacking around with scrollbar styles.