IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
2 Pages V   1 2 >  
Reply to this topicStart new topic

Optimizing Website?


the_furious1
no avatar
Advanced Member
*******
Group: Members
Posts: 116
Joined: 28-February 05
Member No.: 4,058



Post #1 post Mar 24 2005, 02:45 PM
I am sure there is the way to optimize website, so that is looks exactly how you want in every browser. I don't know it, so can somebody help me with that?
Go to the top of the page
+Quote Post
cragllo
no avatar
Privileged Member
*********
Group: Members
Posts: 933
Joined: 24-August 04
Member No.: 892
myCENT:ZERO



Post #2 post Mar 24 2005, 03:27 PM
There is, you just make it, and check it tongue.gif

http://validator.w3.org/

Is that waht you mean?
Go to the top of the page
+Quote Post
the_furious1
no avatar
Advanced Member
*******
Group: Members
Posts: 116
Joined: 28-February 05
Member No.: 4,058



Post #3 post Mar 24 2005, 04:02 PM
No I don't mean that.
I mean when I use CSS and absolute positioning, my page shows different on Internet Explorer and FireFox (left positioning 0 in Internet Explorer is like -2 in FireFox). I wanted to now if there is a way for the page to show up the same way in both browsers.
I was thinking something like this:
For me to have to css files (one for FireFox and the other one for IE), and somehow for web site to recognize the browser and to load corresponding css file. Java script or something.
I don't know JavaScript, so I don't know if that is possible!
If that is possible can somebody show me how make it, or if somebody knows the easier way please tell me!
Go to the top of the page
+Quote Post
sammaye
no avatar
Member [Level 2]
*****
Group: Members
Posts: 87
Joined: 12-March 05
From: somewhere in the UK...if only I knew
Member No.: 4,419



Post #4 post Mar 24 2005, 05:06 PM
you mean using same code for both. I dont believe you can...netscape engine supports some of the commands in css and such like but not all of them unfortaunately sad.gif.

It would be better to make one page for netscape users and one page for IE users. hat would be trhe easier way.
Go to the top of the page
+Quote Post
odomike
no avatar
Core2Q-QX6800
***********
Group: [HOSTED]
Posts: 1,093
Joined: 3-August 04
From: Nigeria
Member No.: 569



Post #5 post Mar 24 2005, 05:09 PM
I dont think there any way to make that possible. If you look at my website, the pic at the top looks real nice with IE but when you look at it with FireFox or any of the Gecko browsers, there is a disallignment in the positioning and if i try to corect that, it doesnt look too well in IE and thats why I have left it that way for some time now.

I think you can optimize it for one and take your channces in the others.
Go to the top of the page
+Quote Post
Vacant
no avatar
Advanced Member
*******
Group: Members
Posts: 117
Joined: 4-August 04
From: England, UK
Member No.: 654



Post #6 post Mar 24 2005, 07:01 PM
You've hit the problem I, along with just about every other web designer, are finding... CSS is split into 3 categories, cunningly entitled CSS1, CSS2 and CSS3. (CSS3 is the newest). How the browser interprets the page depends on which of these it supports.

Example: Internet Explorer only supports CSS1 officially. Meaning that it has trouble with some of the more advanced stuff in CSS2. Firefox and Gecko browsers now support CSS2 and parts of CSS3 (even though css3 isnt officially out yet so I guess we shouldn't count it).

Theoretically then, if you had a browser that used only basic CSS then the page would look the same? Sadly not. Text sizes, screen res and generally what the browsers settings are affect your design. opera, for example, puts an 8px white space around every page! But then Opera is the wierdest and most illogical browser I've ever seen.

Conclusion: No. Even if you validate it completely it's never going to look exactly the same, especially if you use more complx css. Annoying.

This is the main reason why I prefer firefox over anything else. It renders things properly!
Go to the top of the page
+Quote Post
nickmealey
no avatar
Premium Member
********
Group: Members
Posts: 156
Joined: 14-March 05
From: Washington, USA
Member No.: 4,520



Post #7 post Mar 25 2005, 01:11 AM
simple, you find code that supports both browsers.
Go to the top of the page
+Quote Post
the_furious1
no avatar
Advanced Member
*******
Group: Members
Posts: 116
Joined: 28-February 05
Member No.: 4,058



Post #8 post Mar 25 2005, 06:33 AM
I guess then it's not possible.
Since this is not possible, what browser should I optimize my page for?
Go to the top of the page
+Quote Post
mizako
no avatar
Super Member
*********
Group: Members
Posts: 372
Joined: 16-August 04
From: Spain
Member No.: 824



Post #9 post Mar 25 2005, 09:13 AM
You should optimize your site for IE users. Most of the people in Internet use IE so i will do optimize my code for IE. I prefer Firefox too but reality is reality.
Go to the top of the page
+Quote Post
Carsten
no avatar
Member [Level 1]
****
Group: Members
Posts: 51
Joined: 22-March 05
Member No.: 4,813



Post #10 post Mar 25 2005, 10:31 AM
It is possible to optimize your website for both Internet Explorer and Firefox. You would have to spend more time though, because of different types of element rendering. When you really do it by the book, you will find out that it still looks different in Internet Explorer and Firefox. Then you will have to apply some workarounds, but it would still be valid css.

If you want to optimize your website it would be smart to change your html 4.0 to xhtml 1.1 and then try to apply css for markup. At www.cssvault.com/resources.php you will find a list of categories of useful CSS resources. If you want to get started, take a look at the layout category. If you get stuck and need some useful hack, look no further!
Go to the top of the page
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 9 noxit 692 21st June 2004 - 08:16 PM
Last post by: wassie
No new   17 iancovenant 748 30th July 2006 - 08:15 PM
Last post by: Panzer
No new   21 Dagoth Nereviar 1,063 11th November 2008 - 03:27 AM
Last post by: Ruben
No New Posts   5 rpgsearcherz 132 20th October 2008 - 06:00 PM
Last post by: Saint_Michael
No New Posts   3 Thunder 446 28th July 2004 - 02:35 AM
Last post by: killer
No New Posts   12 EricDrinkard 1,466 6th August 2004 - 09:29 PM
Last post by: Vacant
No New Posts   0 andyy15 419 29th July 2004 - 03:59 PM
Last post by: andyy15
No New Posts   1 Jarek_Gd 164 24th February 2008 - 12:49 PM
Last post by: rvalkass
No new   21 PnOyKiO 1,970 12th September 2004 - 11:04 AM
Last post by: dreek
No New Posts   10 Dehornos 1,203 4th January 2008 - 08:52 PM
Last post by: Bluebear


 



RSS Lo-Fi Version Time is now: 3rd December 2008 - 07:51 PM