Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (20.3k 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.7k 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
asked Sep 2, 2019 in Web Technology by Tech4ever (20.3k points)
0 votes
1 answer
asked Aug 30, 2019 in Web Technology by Soni Kumari (40.7k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...