I want a banner to be displayed over 50% of the width of a large screen (desktop) and 100% of the width on a small screen (iphone).
At the moment the image is displayed over 50% of the screen for every device:
.advert-img {
width: 50%;
height:auto
}
How can I vary the width based on screen size?
Is this possible with all browsers? i.e. old blackberry browser