this is a non-absolutely-positioned box

this is an absolutely-positioned box

how do I make it as wide as the yellow box?

this is the version using Rob Swan's method