I initially created a non-responsive website for an existing project. Now I need to convert it into a responsive site. I tried changing the logo image to make it responsive, but it's not working as expected.
<td colspan="2" style="background-image:url('site_conf/images/det_banner.jpg'); background-repeat:no-repeat; background-position:center;" width="100%" height="100" align="right">
This is the code for my site's logo image. How can I make this image fully responsive?
I have created a class in the HTML file like this:
<td class="img1">
Here is my CSS code:
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
{
.img1 {
background-image:url('site_conf/images/det_banner.jpg');
background-repeat:no-repeat;
background-position:center;
width:100%;
Height:100;
}
}
Despite implementing these changes, the responsiveness of the logo is still not working. Can you identify any mistakes in my code?