Skip to content

Instantly share code, notes, and snippets.

@motsu0
Created February 1, 2020 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motsu0/1f2c7ff8aa7f955e44b0ee242f997b8c to your computer and use it in GitHub Desktop.
Save motsu0/1f2c7ff8aa7f955e44b0ee242f997b8c to your computer and use it in GitHub Desktop.
<!-- 左カラム(固定幅)、右カラム(残りの幅) -->
<p>1行の場合のみなら選択肢に入るか。</p>
<div class="parent">
parent
<dl class="sample4">
<dt class="lc">吾輩は猫である</dt>
<dd class="rc">吾輩は猫である。名前はまだ無い。<br>どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。</dd>
</dl>
</div>
.sample4{
display: flex;
}
.sample4 .lc{
width: 8.5em
}
.sample4 .rc{
width: 0;
margin: 0;
flex-grow: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment