Can you tell us what code you are trying to use? It definitely should work with valid xhtml code, but may act up if something is unusual about the code you use.
Also, you aren't using SMF 1.0 are you? This feature was added in SMF 1.1.
Update: Just saw what karlbenson posted. That is important to check too.