question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[img] display: block

See original GitHub issue

Hey,

how about adding this, to avoid the unwanted, very weird space below images. Or is this issue already covered with something else?

img{
    display: block; /* avoids space at bottom */
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jgthmscommented, Sep 12, 2016

Looks like a good candidate.

2reactions
thomasdigbycommented, Sep 12, 2016

vertical-align: text-bottom might be the closest match to the default baseline property without rendering the space underneath. https://developer.mozilla.org/en/docs/Web/CSS/vertical-align

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Layout - The display Property - W3Schools
The display property is the most important CSS property for controlling layout. ... The default display value for most elements is block or...
Read more >
Downside of "display: block" for images? - css - Stack Overflow
I think I may start adding img { display: block; } to all my stylesheets. Typically I would do it on an image-to-image...
Read more >
Make an Image Responsive - why is display block necessary?
Often however it is a good idea to set images to display: block; so that you have maximum control over the styling (e.g....
Read more >
display - CSS: Cascading Style Sheets - MDN Web Docs
The display CSS property sets whether an element is treated as a block or inline element and the layout used for its children, ......
Read more >
img and display:block (Example) | Treehouse Community
img and display:block. when i set display to block to img class profile-photo my image disappears from page. why is that??
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found