On 4/18/10 1:48 AM, Trevor Nicholls wrote: > Hi > > I have a problem with list formatting when list items contain named anchors, > but only under the "loose" doctype in IE (I am using IE8). > [code stripped...] > > ------ > Output: > ------ > > 1. One > > > However if I add the following line to the html file: > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > then the output (using IE8) is no longer what I want, but appears on a > broken line, viz.: > > -------------- > "Loose" output: > -------------- > > 1. > One >
I'm getting this last result *only* in IE 8 and *only* when in so-called "standards mode." In other words, this is an IE 8 problem with any valid or unknown DOCTYPE. Without getting into issues of markup, I suggest using the following META tag in the <head> of your page: <meta http-equiv="X-UA-Compatible" content="IE=7"> I could not find a CSS solution. Sorry. Cordially, David -- ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/