Can I change the width of a div based on content (autosize)?
Posted on 2011-03-22
I have a content management site specific for school districts. On the home page, there are buttons for each campus and there can be from 3 - 10 buttons.
We want this to be entered within the width of the main content area but I can't figure out how to do this so that the results are automatic no matter how many buttons there are.
Is there a way to center a div and have the width autosize to match the width of the buttons?