|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Junior Googler
![]() Join Date: May 2005
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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. |
|
|
|
|
Sponsored Links
|
|
|
|
#3 (permalink) |
|
Googler
![]() |
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. |
|
|
|
|
|
#4 (permalink) |
|
Microsoft Student Partner
Google Guru
![]() Join Date: Jul 2004
Location: England
Posts: 5,787
Thanks: 0
Thanked 2 Times in 2 Posts
![]() |
Hey nice site!
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!
__________________
Visit my Tech Blog! |
|
|
|
|
|
#5 (permalink) |
|
Noogle
![]() Join Date: Jul 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
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 '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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Make out with Firefox -- Firefox fun for Movable Type users | Randy | Web Browsers and Statistics | 4 | 09-06-2007 08:47 PM |
| How much 4 web design??? | FLOOOXY | Web Design, Coding & Programming Forum | 2 | 01-23-2007 06:00 AM |
| re-design | ballbuster | All About Google | 2 | 09-01-2005 05:31 AM |
| Need help with design! | THAPARM | Web Design, Coding & Programming Forum | 1 | 08-01-2005 06:19 AM |