I am working on a design for a website and when you decrease the size of the page I want a specific image in the footer to disappear.
Is this even possible?
It's not only possible, but fairly simple with media queries:
@media screen and (max-width: 600px) {
.myImageClass {display:none;}
}
Yes, it is easily doable. I suggest you use CSS media queries to get the job done.
/* Normal CSS rules (always applies) */
#footer { display: none; }
/* Media query rules to override previous rules, as necessary */
@media screen and (min-width: 800px) {
#footer { display: block; }
}
This can be done either with CSS Media Queries or using Javascript. SmashingMagazine has a good article that can help you get started: http://www.smashingmagazine.com/responsive-web-design-guidelines-tutorials/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With