Link to home
Start Free TrialLog in
Avatar of wesmanbigmig13
wesmanbigmig13Flag for Australia

asked on

Make banner image on website responsive on mobile device using CSS

Hi Experts

I have a single page HTML website with a banner image on it that is 1920px wide.

When viewed on a mobile device or in a browser on a desktop that is smaller than 1920px wide I see horizontal scrollbars.

I do not want this.

I would like the image to be responsive and adapt its width (and proportional height) based on the device it is being viewed on.

I would like to to this using CSS.

How do I do this?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of wesmanbigmig13
wesmanbigmig13
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wesmanbigmig13

ASKER

Found the solution myself as no Expert had replied within an hour. Disappointing.