Home › Forums › CSS › hr on height › Re: hr on height
June 27, 2013 at 11:41 am
#140720
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.