I am currently working on an android mobile app and I have encountered a image rendering issue with android mobile which is smaller in size. The images look neat on phones like Nexus, Samsung that have wide screens but the image overlaps on smaller screen phones. I am using ionic to build my code & have included bootstrap as well.
I have included the below code in style part:
@media only screen and (max-width: 768px) {
/* For mobile phones: */
[class*="col-"] {
width: 100%;
}
The below code in body:
<div class="col-xs-12 col-md-12 col-sm-12" >
<div id="journey" class="col-xs-2">
<a href=" "> <img src="./images/launch 48.png" class="img_responsive" style="width:60px;height:70px;padding:5px;position: relative;left:1%;" cursor="pointer" onclick="" /></a>
</div>
<div id="conveyance" class="col-xs-2">
<a href="./4s.html "><img src="./images/launch 48.png" class="img_responsive" style="width:60px;height:70px;padding:5px;" cursor="pointer" /></a>
</div>
<div id="per-diem" class="col-xs-2" >
<a href=" "> <img src="./images/launch 48.png" class="img_responsive" style="width:60px;height:70px;padding:5px;"cursor="pointer" onclick="" /></a>
</div>
<div id="lodging" class="col-xs-2" >
<a href=" "><img src="./images/launch 48.png" class="img_responsive" style="width:60px;height:70px; padding:5px;"cursor="pointer" onclick="" /></a>
</div>
<div id="misc_1" class="col-xs-2" >
<a href=" "><img src="./images/launch 48.png" class="img_responsive" style="width:60px;height:70px; padding:5px;" cursor="pointer" onclick="" /></a>
</div>
<div id="end_journey" class="col-xs-2">
<a href=" "> <img src="./images/launch 48.png" class="img_responsive" style="width:60px;height:70px;padding:5px;"cursor="pointer" onclick="" /></a>
</div>