Jump to content

[SOLVED] Having a Div take it's width from it's contents


coldkill

Recommended Posts

The only way to do this is to use the float property. This is ideal if you want the content to go to one side, either left or right. But if you want to center that content, it is impossible since no "float: center;" exists.

 

A table would work here as a charm, but of course I would never give in to such stupidity.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.