943,867 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1503
  • PHP RSS
Jan 3rd, 2009
0

difference between IE and Firefox

Expand Post »
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

php Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dourvas is offline Offline
20 posts
since Dec 2008
Jan 3rd, 2009
0

Re: difference between IE and Firefox

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.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
kkeith29 is offline Offline
1,315 posts
since Jun 2007
Jan 3rd, 2009
0

Re: difference between IE and Firefox

Click to Expand / Collapse  Quote originally posted by kkeith29 ...
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dourvas is offline Offline
20 posts
since Dec 2008
Jan 3rd, 2009
0

Re: difference between IE and Firefox

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.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
kkeith29 is offline Offline
1,315 posts
since Jun 2007
Jan 3rd, 2009
0

Re: difference between IE and Firefox

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...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dourvas is offline Offline
20 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Learning PHP
Next Thread in PHP Forum Timeline: Foreign Key is different than primary key





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC