Home > front end >  Extend background color as page height increases
Extend background color as page height increases

Time:05-01

General question, what's a good strategy to increase the background color as the page size increases. For example, I'm working on a todo list and once the list gets big enough to force the page to increase in height, my left sidebar color does not extend with it.

I haven't been able to find a good resource on this online, so any help is appreciated.

Thank you,

CodePudding user response:

Can you share some code? else its just you using height: 100vh or something similar in your CSS as the background color is supposed to go with the div as it extends

CodePudding user response:

Use VH in the height property it will change when the view height changes and get height according to the view height

  • Related