Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
IE vrs. Firefox results
Old 07-03-2007, 07:58 PM IE vrs. Firefox results
Skilled Talker

Posts: 89
Trades: 0
I am trying to make a website using xhtml and css. For some reason IE is showing what I have of my page so far correctly and Firefox isn't. I know Firefox is more strict and have validated all my code.

Hear is what it looks like in firefox. http://i93.photobucket.com/albums/l7...y_Bouzy/gg.jpg

Now Ie... http://i93.photobucket.com/albums/l7..._Bouzy/gg2.jpg

Keep in mind everything is correct except for the side navigation style content box. The only reason the banner isn't there is because it was cut out on my screen print.


(Am I coming about this wrong? I am using the div to make background image for my content boxes...I don't know.. Hear is my code)

body {

background-color: #5f656b;
font-family: Tahoma, "Arial Unicode MS", Arial, sans-serif, serif;
font-size: 12px;
color: #eea103

}

/*Divs*/

#content {

height: 505px;
width: 518px;
background-image: url(images/content.jpg);
background-repeat: no-repeat;
padding-left: 38px;
padding-right: 38px;
padding-top: 46px;
padding-bottom: 46px;
margin-top: 20px;
margin-bottom: 20px;
float: right;

}


#sidebar {


height: 505px;
width: 153px;
background-image: url(images/sidebar.jpg);
background-repeat: no-repeat;
padding-left: 38px;
padding-right: 38px;
padding-top: 46px;
padding-bottom: 46px;
margin-top: 20px;
margin-bottom: 20px;
margin-left: auto;
margin-right: 20px;


}


#navigation {

margin: 0px;
padding-top: 0px;
border-width: 0px;


}

#banner {

border-width: 0px;
margin: 0px;
padding: 0px;


}


#container {

width: 712px;
margin: 0px auto;
margin-left: auto;
margin-right: auto;
}

#home {

width: 442px;

}

#news {

width: 442px;

}







**************************************

And now my XHTML

**************************************

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<title>Goldfish Graphics</title>

<link type="text/css" rel="stylesheet" href="Goldfish.css" />

</head>
<body>

<div id="container">

<div id="banner">
<img src="images/banner.jpg" alt= "Goldfish Graphics Banner Image" />
</div>

<div id="navigation">
<img src="images/navigation.jpg" alt= "navigation background image" />
</div>

<div id="content">
<h2>Home</h2>
<p id="home">
Based in the Midwest, Goldfish Graphics is a freelance design business. Goldfish Graphics is
dedicated to working with clients to turn their ideas into unique designs. By communicating
with our clients, we produce quality websites, layouts, print and website graphics, and logos
that are affordable.

</p>
<h4>News (7/02/07)</h4>

<p id="news">
Although the Goldfish Graphics site is up and running, I am still currently learning how to better make web sites.
Because I am still learning, all web based projects I take on now will be 50% of the price they should be. With a little patience you can have a quality web designs for half the price.
</p>

</div>


<div id="sidebar">

<h5>Testimonies</h5>
<p>
""
</p>

<p>
Links
</p>

</div>

</div>







</body>
</html>
Bouzy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-03-2007, 08:53 PM Re: IE vrs. Firefox results
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
For some reason IE is showing what I have of my page so far correctly and Firefox isn't.
Actually, you have that backwards. If IE is 'right', then it's wrong - Firefox is the more standards-compliant browser, IE is the one with the massive list of bugs and proprietary behaviors.

You're duplicating your rules here;

#container {

width: 712px;
margin: 0px auto;
margin-left: auto;
margin-right: auto;
}

The margin statements there all amount to the exact same thing. Remove the last 2 if you're going to use margin: 0 auto;

Set your #container to position: relative;

#content is floated, so you have to CLEAR your float:
http://css-discuss.incutio.com/?page=ClearingSpace
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-03-2007, 10:19 PM Re: IE vrs. Firefox results
Skilled Talker

Posts: 89
Trades: 0
Amazing. You fixed my problem in two seconds that I have been trying to find on other forums for 4 days. I am defiantly sticking with these forums for good.
Bouzy is offline
Reply With Quote
View Public Profile
 
Old 07-03-2007, 10:44 PM Re: IE vrs. Firefox results
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Glad we could help We're always happy to have new members
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-04-2007, 01:46 AM Re: IE vrs. Firefox results
highanddry's Avatar
Close Talker

Posts: 880
Name: Jacob
Trades: 0
That is funny, I spotted that one too. Are you wc3 compliant?
highanddry is offline
Reply With Quote
View Public Profile
 
Old 07-04-2007, 02:27 PM Re: IE vrs. Firefox results
Skilled Talker

Posts: 89
Trades: 0
Thats what I was saying. I was running my code through the W3 validation, but I didn't know what the errors meant.
Bouzy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE vrs. Firefox results
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.93577 seconds with 12 queries