Forums

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

Home Forums CSS Responsive image description, unwanted gaps

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43362
    Dennis
    Participant

    Trying to make a simple, gracefully degrading “hover-this-thing-and-see-some-sort-of-description-thing” (If there is a name for these things let me know).

    However, I keep getting some gaps below each item which, obviously, I don’t really want.

    http://codepen.io/rawksteady/pen/oHKiv

    #128068
    Paulie_D
    Member

    There are number of solutions depending on what is being hovered so you don’t need all that extra mark-up.

    It looks like you want an ‘overlay’ rather than a ‘tooltip’.

    http://codepen.io/Paulie-D/pen/tfdBg

    #128135
    Dennis
    Participant

    @ChrisP – Nice catch, it’s way to easy to get code blind!


    @Paulie_D
    – Why I never thought of using the figure element is beyond me, definately the right way to go in this case!

    #128136
    Paulie_D
    Member

    The beauty of the figure/figcaption is that the text is readable by screen readers as well although the [alt] tag would work just as well.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.