alin19 Posted October 9, 2008 Share Posted October 9, 2008 i have same code on my localhost server and a bought host, the page located on local host is arange good in ie and mozila the page locatted on the other server is arange good in mozila but in ie il looks all wrong, same code, same css file, Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/ Share on other sites More sharing options...
kenrbnsn Posted October 9, 2008 Share Posted October 9, 2008 Can't help you without seeing you code. Ken Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661198 Share on other sites More sharing options...
BillyBoB Posted October 9, 2008 Share Posted October 9, 2008 Also the display of your site more than likely has nothing to do with php. It is probably an error in HTML. Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661205 Share on other sites More sharing options...
alin19 Posted October 9, 2008 Author Share Posted October 9, 2008 well is not realy a php problem i think, but i don't get it why it looks diferent the same code on diferent servers <html> <head> <link href="../css/style.css" rel="stylesheet" type="text/css"> </head> <body> <div class="container"> <div class="header"> <table width="1000" cellpadding="0" cellspacing="0"> <tr> <td width="800" height="36"><img src="../templates/Poze/name.jpg" alt="Vesminte Preotesti" width="275" height="125"></td> <td width="45" align="left" valign="bottom" id="tdtabelmeniu"><span class="style3 style1"><a href="../php/plasare_comanda.php?categorie=all&page=1">Produse</a></span></td> <td width="46" align="left" valign="bottom"> </td> <td width="67" align="left" valign="bottom" id="tdtabelmeniu"><span class="style3"><a href="contact.html">Contact</a></span></td> </tr> </table> <br> </div> <br> <div class="leftBar" > <ul> {if $supraveghetor.login == true} <li>Admin</li> <li><a href="../php/adaugare_produs.php">Adaugare Produs</a></li> <li><a href="../php/categorii.php">Adaugare Categorie</a></li> <li><a href="../php/confirmare_comanda.php">Confirmare Comanda</a></li> {/if} <li>Guest</li> <li><a href="../php/login.php">Login:</a></li> <li><a href="../php/plasare_comanda.php?categorie=all">Plasare Comanda</a></li> {section name=i loop=$supraveghetor.nr_categorii} <li><a href="../php/plasare_comanda.php?categorie={$supraveghetor.categorii[i].nume}">{$supraveghetor.categorii[i].nume}</a></li> {/section} </ul> </div> <div class="content"> <form method="POST"> Username:<input type="text" name="username"> Password:<input type="password" name="password"> <input type="submit" name="logare" value="login"> <input type="submit" name="delogare" value="logout"> </form> </div> </div> </body> </html> div.container { margin:auto; background: #ffffff; border: red 4px dashed; border-bottom: blue 4px solid; border-top-style: ridge; background-color: #990000; border: 1px solid #FBD76A; width:1000px; height:800; } div.header { background-color: #990000; border-bottom: 1px solid #FBD76A; } div.leftBar { float: left; width: 150px; background-color: #990000; } div.content { float:left; width:800px; } div.rightBar { border: red 4px dashed; border-bottom: blue 4px solid; border-top-style: ridge; float:right; width: 264px; height: 400px; background: #EBEBEB; } Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661206 Share on other sites More sharing options...
DeanWhitehouse Posted October 9, 2008 Share Posted October 9, 2008 well is not realy a php problem i think Then why post in PHP Help??? Please make sure you post in the right place. It's not hard. Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661236 Share on other sites More sharing options...
alin19 Posted October 9, 2008 Author Share Posted October 9, 2008 ok, sorry but you guys know everything and you answer fast, the html section answer slow Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661241 Share on other sites More sharing options...
DeanWhitehouse Posted October 9, 2008 Share Posted October 9, 2008 So... Please don't do it, it will encourage others to post in the wrong place. And ass kissing won't get your answer faster. Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661246 Share on other sites More sharing options...
BillyBoB Posted October 9, 2008 Share Posted October 9, 2008 Where does your problem lie? I can't magically imagine what the code will look like then figure out the error on my own. Please post more about your error. Also, can a mod please move this topic. Could you also give me a link to the working product? Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661254 Share on other sites More sharing options...
kenrbnsn Posted October 9, 2008 Share Posted October 9, 2008 well is not realy a php problem i think Then why post in PHP Help??? Please make sure you post in the right place. It's not hard. Since this involves CSS, I will move it to the CSS section. Ken Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661256 Share on other sites More sharing options...
alin19 Posted October 9, 2008 Author Share Posted October 9, 2008 well i't was just a question to know if there is a diference between those servers at manipulating css, i don't think the problem is with css, because it is working on my computer. i will try to find an answer somewere else Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661282 Share on other sites More sharing options...
BillyBoB Posted October 9, 2008 Share Posted October 9, 2008 Why do you use a mixture of div tags and table tags? You should really think about complete stopping the use of table tags. They are deprecated. Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661287 Share on other sites More sharing options...
alin19 Posted October 9, 2008 Author Share Posted October 9, 2008 that table isn't used to arange the page Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661306 Share on other sites More sharing options...
haku Posted October 10, 2008 Share Posted October 10, 2008 You should really think about complete stopping the use of table tags. They are deprecated. Table tags aren't deprecated, they just shouldn't be used for page layout. But using them for tabular information is absolutely fine. Although whether that is what this guy is using them for, I can't tell. To the OP - what exactly is the problem. You have said 'they don't look the same'. Can you be more specific? Also, can you give a link? That's the easiest way to solve the problem. Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661557 Share on other sites More sharing options...
xtopolis Posted October 10, 2008 Share Posted October 10, 2008 From a quick glance: -The page is not centered in IE because you need to apply "text-align: center;" to the "body" element in css. Your floats need work. Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661561 Share on other sites More sharing options...
haku Posted October 10, 2008 Share Posted October 10, 2008 Text-align: center to the body tag is bad for a couple reasons: 1) It centers EVERYTHING, text and all, and has to be overridden for descendant elements 2) It's not text that he is trying to center, its the site. Actually, the page should already be centered. He has set a width and an auto margin to the container, which will center it on the page. If it's not centered (did he mention that somewhere?), it's either because the width of the container is wrong, or because 1000px is wider than the screen he is looking at. Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661626 Share on other sites More sharing options...
xtopolis Posted October 10, 2008 Share Posted October 10, 2008 I forgot to add "and put text-align: left" to div.container since he's using a wrapper.. I figured he'd realize it after he added the text align center; If IE played nice, he wouldn't be posting here ^^, silly IE.++ IE8 lol. Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661630 Share on other sites More sharing options...
alin19 Posted October 10, 2008 Author Share Posted October 10, 2008 i solved the problem this morning, but i hate this stupid IE 10x Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661785 Share on other sites More sharing options...
kenrbnsn Posted October 10, 2008 Share Posted October 10, 2008 What was the solution? Ken Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661857 Share on other sites More sharing options...
alin19 Posted October 10, 2008 Author Share Posted October 10, 2008 well actualy there was a diference of the elemnts inserted in the database and then shown on the page. was something like this: local: menu categories test web: menu categories VESMINTE PRE and in firefox mozila looked the same because from the left div, the longer string was pasing over the center div, but in ie was pushing the center div down 10x for helping Quote Link to comment https://forums.phpfreaks.com/topic/127755-ie-div-problem/#findComment-661869 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.