Definition list with inline pairs

后端 未结 1 566
有刺的猬
有刺的猬 2021-02-12 10:13

I\'m trying to create a definition list of term-definition pairs, each pair existing on a single, separate line. I\'ve tried making dts and dds d

1条回答
  •  时光说笑
    2021-02-12 10:20

    Try this:

    dt, dd { float: left }
    dt { clear:both }
    

    Add margin-bottom to dt dd if you'd like more space between them..

    0 讨论(0)
提交回复
热议问题