werushka Posted February 7, 2008 Share Posted February 7, 2008 Hi everyone I have a problem with an html table... In Firefox the site shows correctly but in IE7 this table messes up the page that it is in. the code is <table> <tr> {foreach from=$headers item=header key=number} <th> { if $number eq $templatelite.GET.sortby } <span>{$header}</span> { else } <a href="?sortby={$number}">{$header}</a> { /if } </th> {/foreach} <th> {#PLIGG_Visual_TopUsers_TH_Karma#} </th> </tr> {$users_table} </table> if i remove <table></table> no more problem but of course nothing is orders. I would really appreciate any help. Thanks very much in advance. Quote Link to comment https://forums.phpfreaks.com/topic/89836-must-be-simple-browser-problem/ Share on other sites More sharing options...
haku Posted February 7, 2008 Share Posted February 7, 2008 You need to use CSS to style your table. Assuming the data is tabular data - if you are using it to lay out your site design, then you shouldn't be using tables at all. As for fixing it between firefox and IE, welcome to the designer's bane. Cross browser coding is a pain in the ass. Quote Link to comment https://forums.phpfreaks.com/topic/89836-must-be-simple-browser-problem/#findComment-460390 Share on other sites More sharing options...
werushka Posted February 7, 2008 Author Share Posted February 7, 2008 Ok thanks I added a css style and now it is fixed Quote Link to comment https://forums.phpfreaks.com/topic/89836-must-be-simple-browser-problem/#findComment-460404 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.