CSS: Why won't this box get wider?

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-06-08T02:22:52Z Indexed on 2010/06/08 2:32 UTC
Read the original article Hit count: 263

Filed under:

I just need a sanity check here... DEMO

Basically, I can't figure out how to get the box under the link to get wider as more content is added. It seems fixed to the width of the parent div (or the width of, say, the longest element like the select or a really long word with no spaces), despite being absolutely positioned. I use this trick all the time with ul and li but it doesn't make sense to use that in my situation, and for some crazy reason it just won't work with a div inside a div.

I don't want to set a width (which, of course, works) because I don't always know what will be in this box. GRR

Thanks :\

© Stack Overflow or respective owner

Related posts about css