Know someone who might have the answer? Pass it along!
How can I shrink a <div> to its content, while still having it centered?
Asked by
Vincentt (
2170
)
| asked October 29th, 2007
| 8 responses
Hey, there’s this <div> I want to center on an HTML page but I don’t want it to take the full width… I could shrink it by adding float: left; but then it doesn’t center :(