If you want the two black lines to appear inside the blue div, don't you think it would make sense to enclose the code for them inside the code for that div? Think about where you're placing your closing tags.

(If this is purely an exercise to see whether or not it's possible, there's no problem, but this is a truly horrible way to code this, and I wouldn't recommend it to anybody in the real world.)