Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Relative-problem Reply To: Relative-problem

#248057
Shikkediel
Participant

Inline elements inside a block level element will add an empty line. Or something like that, there’s probably a better description. Anyway, you can use this to get rid of it (giving absolute position already adds it automatically for the others):

.image:first-of-type {
  position: relative;
  display: block;
}