0 votes
1 view
in Web Technology by (22.4k points)

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.

1 Answer

0 votes
by (40.3k points)

Try using the code given below:

display: -moz-inline-stack;

display: inline-block;

zoom: 1;

*display: inline;

Refer to this: Foo Hack – Cross Browser Support for inline-block Styling (2007-11-19).

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...