websolutions
Members
-
Joined
-
Last visited
Reputation Activity
-
websolutions got a reaction from Jo 90 in Code for Responsive Header Image Using Media QueryIn case anyone comes here looking for an answer, this is the solution provided to me on another venue.
Insert the path to your own header image in place of "sample_header_image.png"
HTML
<img class="header-image" src="sample_header_image.png">
CSS
@media only screen and (max-width: 992px) {
.header_image {
max-width: 125%;
}
@media only screen and (max-width: 768px) {
.header-image {
max-width: 150%;
}
}
@media only screen and (max-width: 567px) {
.header-image {
max-width: 200%;
}
}