Using media queries i am trying to hide a image of cube for desktop and then replace it with another iphone image for the cube.... i am able to hide the desktop image for iphone but the iphone image is not appearing..... how to fix the issue.....
http://jsfiddle.net/QYvrt/27/embedded/result/
providing my code below
<div class="desktopContactImage" data-caption="<a style='margin-left: 92px; font-size: 18px; color: grey;' href='http://www.w3schools.com/' >Create</a> <div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >View/Edit</a> </div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >Labels</a>" data-image="http://www.defie.co/designerImages/inventoryControl.png">desktopImage</div>
<div class="iphoneContactImage" data-caption="<a style='margin-left: 92px; font-size: 18px; color: grey;' href='http://www.w3schools.com/' >Create</a> <div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >View/Edit</a> </div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >Labels</a>" data-image="http://intra.defie.co/images/cubes/demoImage.png">iphoneImage</div>
@media (max-width: 767px) {
#rightSlider{
border: 1px solid red;
}
#rightSlider{
display:none !important;
}
#rightSlider{
display:inherit !important;
}
.desktopContactImage{
display:none !important;
}
.iphoneContactImage{
display:inherit !important;
border: 1px solid red;
}
}
#slidenav{
display:none !important;
}
#slidenav{
display:inherit !important;
}
}
@media (min-width: 768px) and (max-width: 979px) {
#rightSlider{
border: 1px solid green;
}
}
/* Demo styling */
#rightSlider{
display: none;
}
#slidenav{
display: none;
}
.iphoneContactImage{
display: none;
}