How can i set fixed width using css? : is there a way to define only fixed width and not height?
Because the position: fixed; is not good for me.

I have a Navbar, which it's background not expanding on the full screen on minimized window (because i have an element defined with pixels bigger than the minimized window width, and when i scroll it is not fixed). position: fixed; is working for the width of the page, but it's not good for the height. Please help me

thanks!!