Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,791 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,619 people online right now. Registration is fast and FREE... Join Now!




Why do they look so much different?

 
Reply to this topicStart new topic

Why do they look so much different?, IE and Firefox

UmmmmIdk
post 8 Oct, 2008 - 07:54 PM
Post #1


New D.I.C Head

*
Joined: 3 Oct, 2008
Posts: 10


My Contributions


Alright, I can't figure this out. I created my page and used mostly Firefox to see how it looked. I went into IE and it looks completely different. I used pixels to position everything pretty much so I don't see how that could be the problem. In Firefox it looks great, in IE not so much.

Here is my code from my .css file.

CODE

#container {
    height:100%;
}
body {
    background-color:#d5daff;
}
marquee {
    padding-top:6px;
    background-color:#FFFFFF;
}
#header {
    background-image:url(images/top_bg_2.png);
    background-repeat:repeat-x;
    width:802px;
    height:223px;
}
#navbar {
    padding-top:0px;
    font-size:small;
    font-family:Arial, Helvetica, sans-serif;
}
#navbar a {
    padding-left:7px;
    padding-right:7px;
}
#navbar a:link, a:visited {
    color:#000000;
    text-decoration:none;
}
#navbar a:hover {
    color:#CCCCCC;
    text-decoration:none;
}
#main {
    font-size:medium;
    font-family:Georgia, "Times New Roman", Times, serif;
    width:760px;
    padding:20px 20px 20px 20px;
    background-color:#FFFFFF;
    border-width:thin;
    border-color:#000000;
    border-style:solid;
    border-bottom:none;
}
#footer {
    background-image:url(images/foot_bg.png);
    background-repeat:repeat-x;
    font-size:small;
    font-family:Arial, Helvetica, sans-serif;
    border-top-width:medium;
    border-top-color:#000000;
    border-top-style:solid;
    background-color:#666666;
    width:802px;
    height:30px;
}


Here is the website so you can view it in both browsers. www.notanotherfreesite.com/zbt/index.php
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 8 Oct, 2008 - 08:01 PM
Post #2


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,980



Thanked 77 times

Dream Kudos: 1175
My Contributions


Pixel positioning works fine, but IE and FF have different ways of figuring out where each pixel is actually located on screen, tha tmeans that in IE 100px could be the same as FF with 80px. I suggest making 2 different style sheets and then including one or the other depending on the browser that is being used to view the page. This can be accomplished by using HTML if statements (basics of them can bee seen here, or a simple search would probablybring up other results):
http://www.dreamincode.net/forums/showtopic66012.htm

Hope that helps.
User is offlineProfile CardPM

Go to the top of the page

UmmmmIdk
post 8 Oct, 2008 - 08:14 PM
Post #3


New D.I.C Head

*
Joined: 3 Oct, 2008
Posts: 10


My Contributions


QUOTE(BetaWar @ 8 Oct, 2008 - 09:01 PM) *

Pixel positioning works fine, but IE and FF have different ways of figuring out where each pixel is actually located on screen, tha tmeans that in IE 100px could be the same as FF with 80px. I suggest making 2 different style sheets and then including one or the other depending on the browser that is being used to view the page. This can be accomplished by using HTML if statements (basics of them can bee seen here, or a simple search would probablybring up other results):
http://www.dreamincode.net/forums/showtopic66012.htm

Hope that helps.


I never thought of that. Thanks alot. smile.gif
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 8 Oct, 2008 - 08:16 PM
Post #4


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,980



Thanked 77 times

Dream Kudos: 1175
My Contributions


No problem. I am just glad to have been of some service.
User is offlineProfile CardPM

Go to the top of the page

UmmmmIdk
post 8 Oct, 2008 - 08:38 PM
Post #5


New D.I.C Head

*
Joined: 3 Oct, 2008
Posts: 10


My Contributions


I solved all my problems I posted here.

This post has been edited by UmmmmIdk: 8 Oct, 2008 - 09:42 PM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 04:20PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month