Forums

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

Home Forums CSS [Solved] Description list Space between dt and dd

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #176426
    stg1815
    Participant

    Hi all! I have been playing with my news section. I can’t seem to reduce the space between the dt and dd. The dd is supposed to contain an image.

    I played with the float but failed to get it work.
    Here is my code:
    http://codepen.io/stg1815/pen/xpDbz

    Thanks in advance!

    #176427
    Kingslayer
    Participant

    What is it supposed to look like ?

    #176429
    stg1815
    Participant

    Similar to this:

    #176430
    Paulie_D
    Member

    I can’t seem to reduce the space between the dt and dd.

    There is no ‘space’ between them as you can tell if you give them different background colors.

    The dl is 100% wide…did you want something less?

    It’s unclear to me why you have chosen this particular structure which seems ill suited to a ‘news’ section.

    #176431
    stg1815
    Participant

    @Paulie_D I chose description list because I thought it is the best for “news section”. Any suggestion?

    #176432
    Paulie_D
    Member

    I would be using the article element

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

    #176639
    stg1815
    Participant

    @Paulie_D – Thanks for the suggestion. I will try this.

    @wolfcry911
    – Thank you for the explanation. I understand better.

    Solved!

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