Banner image problems

Banner image problems
0

#1

Hello, everyone,

I’m not entirely sure how to make my banner span across most screens. I don’t know whether to use the class “max-width:100%” or the “img-fluid” to ensure that my image banner scales with its parent element. Should I do this?

Responsive Image

#2

Your question is vague, so I’m not able to give a definitive answer. I also don’t know whether you’re using a CSS framework, though I assume you’re using Bootstrap since you mentioned the img-fluid class. max-width won’t work as you expect it to, since it will be smaller if it can. Try setting width to 100%.