The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › ul with same height as contents
This is my code:
I want a 10px margin between h1 and ul. The problem is that ul don’t have the same height of it’s contents.
If I use overflow I loose the padding from the links: https://jsfiddle.net/bjc469wt/1/
If I use float left I loose the float right from item 2: https://jsfiddle.net/bjc469wt/2/
What can I use here?