Posted: Thu Jun 09, 2005 10:03 pm Post subject: Design for IE or FireFox
I just recently realized the same site can look so different depend on browsing with IE or FireFox. Take my profile on MySpace for example :www.myspace.com/ellac
you see the defference? What can I do about it? How do I make a site that looks fine on both IE and FireFox?
Please tell me what you think.
what i did was made 2 sites, one for Netscape Browsers(Firefox) and one for IE on the splash page it had Enter Netscape Site and IE, i know theres easiers ways but meh
I have an Idea make two php pages , make a file called menu.txt and put all of your links there with the format "?page=home" For example and use dynamic includes to include the menu in two pages and use the this code in the content place:
<?php
$page = $_GET["page"];
$ext = "html";
If(!$page || $page == "" || file_exists("$page.$ext") == false)
{
echo("Can not find any file to include");
}
else {
include("$page.$ext");
}
?>
this will also print a message if the file to include does not exist.
Put all of your contents on html files :
for example "?page=avatars" will include the file avatars.html feel free to modify the code and change it to fit your needs.
now you don't have to make to sites just make to pages and the same menu file will need to be updated and the same contents .
hope that I helped you. _________________
Anyway one way would be to make sure it's W3 Valid, though this does not always mean that it will work in both browsers as I have found out! _________________ My Blog | Microsoft Discussion
I try and make my sites as friendly to as many browser on different platforms as possible. The easiest way to do this in my opinion is to use DIV's and CSS2.
However if you need different pages for IE and for FF couldn't you just have at the start page something which regonise's the users browser. Then display's the right content depending on the browser. This would only require 1 page and wouldn't be to hard to set up in PHP using $_SERVER['HTTP_USER_AGENT']; and IF statements.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.
alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden