check computed styles in browser and see what is affecting it... or try universal hacking tool i.e. !important :-)
edit: also if you don't specify pixel width of parent then setting max-width as a percentage of unknown value is simply ignored.
edit: also if you don't specify pixel width of parent then setting max-width as a percentage of unknown value is simply ignored.