difference between IE and Firefox

Reply

Join Date: Dec 2008
Posts: 12
Reputation: dourvas is an unknown quantity at this point 
Solved Threads: 0
dourvas dourvas is offline Offline
Newbie Poster

difference between IE and Firefox

 
0
  #1
Jan 3rd, 2009
hallo,

i have align problems about my data into a html table. In Firefox everything is ok aligned to center. in IE everything is alligned to left and thats not ok

my code

  1. </head>
  2.  
  3. <body bgcolor=#FF8000>
  4.  
  5. <div align='center'>
  6.  
  7. <table border='1' align='center' width="80%" cellspacing="0" cellpadding="0" bgcolor=#FFFFFF>
  8. <tr allign='center'>
  9. <td align='center' width="492" height="84" alt=""><img src="./images/main banner.jpg" width="492" height="84" alt="" align="middle">
  10.  
  11. <div align='center'>
  12.  
  13. <br><br>
  14. <p align='center'><b>ΜΗΝΥΜΑ</b></p>
  15. <br><br>
  16. <?php
  17.  
  18. -------connect to database-------
  19.  
  20. -------form------
  21.  
  22.  
  23. ?>
  24.  
  25. </div>
  26.  
  27. </td>
  28. </tr>
  29.  
  30. </table> <br>
  31. </div>
  32. <p align='center'><a href="......"> ADMIN</a></p>
  33. </body>

except the table itself nothing is at center. and thats only in IE . safari and firefox are working good...

what should i do
Last edited by peter_budo; Jan 6th, 2009 at 1:58 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: difference between IE and Firefox

 
0
  #2
Jan 3rd, 2009
do you have a doctype. a lot of cross-browser issues are solved just by defining a doctype.

you might also want to look into css.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 12
Reputation: dourvas is an unknown quantity at this point 
Solved Threads: 0
dourvas dourvas is offline Offline
Newbie Poster

Re: difference between IE and Firefox

 
0
  #3
Jan 3rd, 2009
Originally Posted by kkeith29 View Post
do you have a doctype. a lot of cross-browser issues are solved just by defining a doctype.

you might also want to look into css.
----------------------------------------------------
than u for your quick answer.

so i inserted an css (external)
this one

.alltocenter { font-family: Verdana; font-size:12px; vertical-align: top; text-align: center; border-spacing: 1pt 1pt; border: 1px none; }

and i called it in my table

<table class='alltocenter' border='1' align='center' width="80%" cellspacing="0" cellpadding="0" bgcolor=#FFFFFF>
<tr>
.
.
it works (i see verdana) but the text and the image are still in the left!!
i also defined a doctype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
even i dont know what a doctype realy does... (i added this line before <html> tag......

something else....
Last edited by dourvas; Jan 3rd, 2009 at 7:28 am.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: difference between IE and Firefox

 
0
  #4
Jan 3rd, 2009
i took a closer look at the code and saw some misspellings like "allign" and that you have an alt="" attribute in a table data element. ??? look for things like that.

also, i recommend retyping your code and organizing it better. you should find your mistake.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 12
Reputation: dourvas is an unknown quantity at this point 
Solved Threads: 0
dourvas dourvas is offline Offline
Newbie Poster

Re: difference between IE and Firefox

 
0
  #5
Jan 3rd, 2009
ok man. u were right. it was a stupid error.

just for the records

the wrong line:
<td align='center' width="492" height="84" alt=""><img src="./images/main banner.jpg" width="492" height="84" alt="" align="middle">

the right line:
<td><img src="./images/main banner.jpg" width="492" height="84" align='middle'>

thank u very much...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC