Skip to main content
Active reading.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

How tocan I make a div not larger than its contents?

How tocan I make a div not larger than its contents?

I have a layout similar to:

<div>
    <table>
    </table>
</div>

I would like for the div to only expand to as wide as my table becomes.

How to make div not larger than its contents?

I have a layout similar to:

<div>
    <table>
    </table>
</div>

I would like for the div to only expand to as wide as my table becomes.

How can I make a div not larger than its contents?

I have a layout similar to:

<div>
    <table>
    </table>
</div>

I would like for the div to only expand to as wide as my table becomes.

edited tags; edited title
Link
nbro
  • 16k
  • 34
  • 122
  • 219

Make Div Width Equal To Child Contents How to make div not larger than its contents?

edited title
Link
Josh Crozier
  • 242.3k
  • 56
  • 401
  • 316

Make CSS Div Width Equal To Child Contents

edited tags
Link
Cody Guldner
  • 2.9k
  • 1
  • 27
  • 36
Loading
Question Protected by jtbandes
edited tags
Link
annakata
  • 76k
  • 18
  • 116
  • 181
Loading
Source Link
George Snider
George Snider
Loading