WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Inconsistence between FF and IE when using showmenu2 with td and img

(1/2) > >>

ocline:

Hi guys,

I've ran into a problem using showmenu2 on my site. Everything were just great till I have looked at the page in IE7.

Need your advise, is it possible to use showmenu2 with table layout so that background image inside td cell wouldn't shift with white spaces appearing on the image borders if viewed in IE. However it looks fine in FF.

showmenu2 was configured as follows :


--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_ALL,&#39;<td class="[class]">[a][menu_title]</a><td class="separator"><img src="&#39;.TEMPLATE_DIR.&#39;/img/m_s.png"/>&#39;,&#39;</td>&#39;, &#39;<tr class="topMenu"><td style="padding: 0px;"><img src="&#39;.TEMPLATE_DIR.&#39;/img/m_l.png" />&#39;, &#39;<td width="100%"/><td style="padding: 0px;"><img src="&#39;.TEMPLATE_DIR.&#39;/img/m_r.png" /></tr>&#39;, &#39;&#39;); ?>

--- End code ---

Screenshots are attached.

Thanks.


[gelöscht durch Administrator]

marathoner:
I this that this has nothing to do with showmenu2. The problem is that FF and IE 7 render the CSS differently. You might want to play with your CSS and check some of the IE 7 hacks to address the rendering problem.

Ruud:
just a wild guess..

start your css with:


--- Code: ---* { margin:0; padding:0; }

--- End code ---

That often helps in margin problems between FF and IE

Ruud

ocline:


*  { margin:0; padding:0; } doesn't solve it.

Could it be that showmenu2 adds and extra space or other symbol into the output and that inside the <td> tag causes all that shifting?

Ruud:
Show_menu2 does not know anything about browsers, the same for WebsiteBaker. For all they care you could be looking with your motorcycle. The same data will be send every time.

If you give a link to the site you are working on it might be that someone could give more tips, although the general rule is that you should ask CSS related questions on CSS forums and not on this forum.

As another option, use Google to search for "CSS IE FF". It will give you 700.000 results.

Ruud

Navigation

[0] Message Index

[#] Next page

Go to full version