Bootstrap’s thumbnails show too much space on both sides of the image in small screen

While using Bootstrap’s thumbnails to display images, I found that while dragging the browser to the small window size, there are too mch space on both sides of the thumbnail.

Before fixing the problem
Look at the white space on both sides of the thumbnail

For fixing it, I change the display property from the default blockto inline-block for the small window size:

In the css style sheet

@media (max-width:992px) {
.thumbnail {display: inline-block;}
}

After the change, the thumbnail shows as follows:

Before fixing the problem
The extra white space inside the gray border disappears.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s