What is the way to make a div(or another element) with border, «stiched» to the outer borders of objects inside that div?
For example: 
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to do it only with css and without any javascript plugin, you could do it with a lot of work, like following for example :
Demo
HTML
CSS
Here you need to set the position of each element and their sizes, then you have to adjust for each the display of each superimposed border.
It’s a little bit ugly, but that’s working…