I am using full background Image in my div, but while window resize it is not resizing properly from left and right, I do not want to use position:fixed because it is creating Issue for me.
kindly help how i can fix this Issue, image should resize perfectly as per window size (resize).
You do not say what the issue is exactly and what you expect to happen. the code you presented will do what you told it but that may not be what you wanted
If you want a viewport sized image that is fixed in position then I would use this method.
Mobile devices do not play nice with background-size:cover and images with background-attachment:fixed and stretch the image to the whole document and not the viewport. The method I suggest solves this problem.
Of course you may have wanted something completely different as you do not say in detail what you require
That looks like bootstrap code and is incorrectly formed anyway as you can’t have a container class as a direct child of a row. Only column classes can be direct children.
Please put up a fully working codepen so we can fix properly. I’m assuming this is bootstrap 4 but I don’t see how you expect a 9 column element to fill the screen anyway. Or did you mean you only want the image to fill the div it is placed in?
As I said above your goal is unclear and we could be guessing all day.
Thanks Paul - resolved the issue my there was some other issues in the page - Issue has bee resolved, its working fine for me… thanks a ton for your time.