So, I have a sidebar on my site. It can vary dynamically in height. I want to have a 1px wide border to the right, but I don’t want it to be as tall as the container; it should only be 70% that height. Also, it should be vertically centered to the middle of the container.
How can I do this? Most of the ways I’ve seen require the border’s height to be defined, but I am not able to do that. Is this possible with just CSS? If not, how can I use JavaScript to perform this? Thanks!
I’ve got an idea, it’s supported by
FF6andIE9+ChromeandOpera 11:html
css
jsFiddle … I have no idea if it will work anywhere else