Hi All, I'm struggling with an issue that I've once again resolved in everything except Internet Explorer. I have a set of 'slides' that I'm showing and hiding via javascript. Each slide is shown when its corresponding icon is clicked and all other slides are hidden. My problem is getting the icons to align in a horizontal row. The issue arises because the whole thing is generated by a PHP application and I can't guarantee that there will be a real icon for each slide. So I'm using divs where no icon exists. Here's the code snippet:
<td> <img id='pcicon1' src='http://pcserver/pcicons/icon01.gif' alt='' style='vertical-align:middle; border: 1px black solid; cursor:pointer;' onClick='showslide1();'> <img id='pcicon2' src='http://pcserver/pcicons/icon02.gif' alt='' style='vertical-align:middle; border: 1px black solid; cursor:pointer;' onClick='showslide2();'> <div id='pcicon3' style='display:inline-block; vertical-align:middle; height:40px; width:40px; border:1px black solid; cursor:pointer;' onClick='showslide3();'> </div> <img id='pcicon4' src='http://pcserver/pcicons/icon04.gif' alt='' style='vertical-align:middle; border: 1px black solid; cursor:pointer;' onClick='showslide4();'> </td> The machine 'pcserver' is one of my virtual development servers and it's not publically visible. As you can see, I have one 'slide' that doesn't have an icon and so I've simulated one by using the div with id=pcicon3. In Firefox, Safari, Chrome and Opera I get the desired result of all four icons in a horizontal row. In IE each 'pseudo-icon' div starts a new row: that is, it seems that IE treats the display setting of inline-block as though it were 'block'. For info, the doctype is 4.01 Transitional and, since this code is to be inserted into someone else's page, I can't change this and also must style each element directly rather than via a stylesheet. Any ideas gratefully received. -- Geoff Lane Cornwall, UK ______________________________________________________________________ css-discuss [[email protected]] 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/
