How to Make the Parent’s Div Width Equal to the Child’s Contents

Hello Will

I am creating a vb.net site and I have an issue with the width of the div tags. I have a layout similar to the following layout and I would like the div to only expand as wide as my table becomes. How do I accomplish this?

Many thanks
Lionel Moody from Rockville

One thought on “How to Make the Parent’s Div Width Equal to the Child’s Contents

  1. Hello Lionel

    The answer to your question is quite simple. In you vb.net program you have to change the style of the div tag and set it to
    display: inline-block

    Will

Comments are closed.