I'm having a small problem on a page. I have a div that is located inside another div which has a fixed width and margins: auto. The div contains nothing more than a couple of links, and as far as my understanding of this goes, the (default) setting of width:auto should make the box only large enough to contain it's elements, right? However, it is making it as wide as possible within the constraints of the parent div. Perhaps you can help me out:

http://asan102.spymac.net/test/
This is the page in question. The box I am having troubles with is the long green one containing the "Index, Bac, For" links. It is supposed to be only as wide as the links, but is stretching to maximum width. I could get around this by specifying a width, but that would mean it would break if the text is re-sized.


Please note that I have only tested this on Safari for Mac so far : it may very well have problems in other browsers, but hopefully it will be okay.

here is a quick link to the relevant css:
http://asan102.spymac.net/test/style.css


Any help is greatly appreciated, Sam Walker

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************




Reply via email to