# Variable content width + border, no tables?

**URL:** <https://forum.kirupa.com/t/variable-content-width-border-no-tables/142784>\
**Category:** Uncategorized\
**Created:** [March 31, 2005, 2:28pm UTC](https://forum.kirupa.com/t/variable-content-width-border-no-tables/142784 "2005-03-31T14:28:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [March 31, 2005, 2:28pm UTC](https://forum.kirupa.com/t/variable-content-width-border-no-tables/142784/1 "2005-03-31T14:28:35Z")

</div>

I couldn’t figure this one out. Maybe some of the css/standards pros out there can help me out.

Basically, I have blocks with an image and a lower caption. Around these, a border. All images and text are completely dynamic and size unknown. How do I make a fitting border? See image:
