/ Published in: CSS
Unlike linked style sheets, it is necessary to enclose CSS in Headers in a "style type".
This example media query is for screens under 1024 (tablets and phones) to make sure the images do not extend beyond the layout.
This example media query is for screens under 1024 (tablets and phones) to make sure the images do not extend beyond the layout.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<style type="text/css"> @media only screen and (max-width : 1024px) { img { max-width: 100%; } } </style>