No replies
gautamz07
gautamz07's picture
Offline
Enthusiast
Last seen: 3 years 4 weeks ago
Timezone: GMT+5.5
Joined: 2014-04-24
Posts: 265
Points: 403

i found the below code online to make images responsive :

.img-responsive {
   display: block;
   height: auto;
   max-width: 100%;
}

that means for every image tag , i can use the class img-responsive .

but than why has the author used

  display: block;

What purpose does that serve ??