Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2005, 07:33 AM
Registered User
 
Join Date: Mar 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Browser compatibility

I have put up a small php/mysql application on our intranet running on a suse/linus web server. The web page looks normal on konquerer/firefox browser but looks awful on IE especially the table lines. Is there a way to fix this problem other than forcing the users to install firefox? Appreciate any help from someone. Thanks

chokk

 
Old May 16th, 2005, 09:36 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

...erm, let's see the code

--
Don't Stand on your head - you'll get footprints in your hair
                                           http://charlieharvey.org.uk
                                              http://charlieharvey.com
 
Old May 17th, 2005, 01:29 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

PHP/MySQL don't affect much layout.
May be you've problem with CSS/JavaScript and HTML.
It is easy to support IE and Firefox both.
Please see your client-side code. Validate your CSS/HTML. -do-

 
Old May 17th, 2005, 07:21 AM
Registered User
 
Join Date: Mar 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the feedback guys. I haven't got to the level of using CSS yet which will probably fix the problem. To be more specific, in the code example below, the text line within the table box is not centered vertically but skewed closer to the top line leaving more space below. Whereas in firefox browser each text in the table is centered properly.
<html>
<head>
     <title>unlogged_user.php</title>
</head>
<body>
<table border=1 width="400" cellspacing=0 cellpadding=1 bgcolor="#353535" align="center">
         <td bgcolor="#ffffff" colspan=1 align="Center">
            <h3>Welcome to CM Database Web Page</h3>
         </td>
        </Table>
<p></p>
<table border=0 width="400" cellspacing=0 cellpadding=1 bgcolor="#353535" align="center">
         <td bgcolor="#ffffff" colspan=1 align="Center">
            <h4>You are currently not logged in.</h4>
         </td>
        </Table>
<table border=0 width="400" cellspacing=0 cellpadding=1 bgcolor="#353535" align="center">
    <tr>
         <td bgcolor="#ffffff" colspan=1 align="Center">
            <h4>Please, <a href="user_login.php">click here</a> to login as a user.</h4>
         </td>
    </tr>
    <tr>
         <td bgcolor="#ffffff" colspan=1 align="Center">
            <h4>Or</h4>
         </td>
    <tr>
         <td bgcolor="#ffffff" colspan=1 align="Center">
            <h4><a href="admin_login.php">click here</a> to login as an administrator.</h4>
         </td>
    </tr>
        </Table>
</body>
</html>

chokk

 
Old May 18th, 2005, 01:51 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

This may be helpful; add this to HEAD section:
Quote:
quote:<style type="text/css"><!--
td {
    vertical-align: middle;
}
--></style>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross browser compatibility hussainm BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 December 4th, 2006 07:34 AM
VBscript browser compatibility 1up HTML Code Clinic 1 December 12th, 2005 05:41 PM
To check the browser compatibility lily611 ADO.NET 2 June 14th, 2004 07:17 AM
compatibility questions ywagshul BOOK: ASP.NET Website Programming Problem-Design-Solution 3 June 2nd, 2004 04:12 PM
compatibility questions ywagshul SQL Server 2000 0 June 2nd, 2004 10:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.