Forums

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

Home Forums CSS hr on height Re: hr on height

#140720
Paulie_D
Member

To be honest that’s not what the `


` is for.

**hr** stands for horizontal rule.

The intention is that it separate two pieces of horizontal content **in the same element** and that isn’t how you are trying to use it.

I’m not saying what you are trying to do is impossible but the height of the `


` cannot be automatic (AFAIK)…you would need (I think) JS to determine the height of the wrapper and use that as a basis of the `


`.

I’m wondering if CSS-columns might not be a better option (as that has a ‘rule’ feature) but that will depend on the content you are actually proposing to use.

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