Container size difference in Explorer vs. Firefox.

This is a discussion on "Container size difference in Explorer vs. Firefox." within the Web Page Design section. This forum, and the thread "Container size difference in Explorer vs. Firefox. are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 21st, 2005, 03:18
New Member
Join Date: Oct 2005
Location: Delaware, OH
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Container size difference in Explorer vs. Firefox.

I have set up a site at http://www.chrispasseno.com/web-content/
and am having a problem getting it to look the same in Internet Explorer vs. Firefox.

Specifically, I am concerned with the container, which renders larger in Explorer. I remember something about a the way Explorer counts padding and such.

Is there a fix to satisfy both Explorer and Firefox?

My css is here: http://www.chrispasseno.com/web-content/style.css

and my html is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html><head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
<link rel="stylesheet" href="style.css" type="text/css" />
<title>Collegiate Sunglasses</title>
</head>
<body>

<div id="header">
</div>

<div id="container">
<del class="container">
<ul id="menu">
<li><a href="index.html">Home</a></li>
<li><a href="sunglasses.html">Sunglasses</a></li>
<li><a href="distributors.html">Distributors</a></li>
<li><a href="contactus.html">Contact Us</a></li>
</ul>
</del>

<p>Collegiate Sunglasses was formed in June 2004 with the goal of bringing two things together that so many of us enjoy, sunglasses and college sports!</p>
<p>The line has been expanded to include The Ohio State University Buckeyes, The University of Michigan Wolverines and The University of Notre Dame Fighting Irish.</p>
<p>Our sunglasses, both frame and lens are polycarbonate (which means they're shatterproof) and they offer the maximum UV protection. In addition, our product exceeds FDA and ANSI standards. </p>
<p>We have plans for 2006 to expand the product line by up to 12 additional schools and possibly offer a premium lens, either polarized or melanin.</p>
<p>Please view our product on the following pages and let us know what you think. We'd like to know what other schools we should add to our line. In addition, if you need to locate a supplier for our product, e-mail us your location and we will provide you with either an Authorized Distributor or an Eye Care Professional that handles Collegiate Sunglasses.</p>
</div>

<div id="foot">
| <a href="index.html">Home</a> | <a href="sunglasses.html">Sunglasses</a> |
<a href="distributors.html">Distributors</a> | <a href="contactus.html">Contact Us</a> |<br/>
&copy; 2005. Collegiate Sunglasses, LLC&reg;. All Rights Reserved.

</div>
</body>

</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 21st, 2005, 03:38
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Container size difference in Explorer vs. Firefox.

This article sums it up nicely: http://www.communitymx.com/content/a...989953B6F20B41
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 21st, 2005, 03:41
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Container size difference in Explorer vs. Firefox.

use:
* { margin: 0px; padding: 0px; }
at the very top of your css file, then use only padding or margin to adjust your elements, not both, this should help. I personally never have an issue with the box model issue, but I guess that's just the way I code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 21st, 2005, 12:45
New Member
Join Date: Oct 2005
Location: Delaware, OH
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Container size difference in Explorer vs. Firefox.

herkalees- Thanks for the link, that article is golden.


pheonix- thanks for your input.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 21st, 2005, 14:10
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Container size difference in Explorer vs. Firefox.

Great article Herkalees.
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
container, size, difference, explorer, firefox

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] firefox and IE difference Phixon Web Page Design 2 Apr 18th, 2008 10:06
Is it possible to better control changes by Internet Explorer->View->Text Size Phil Web Page Design 4 Jan 14th, 2008 11:11
DIV's overspilling container DIV in Firefox Craigj1303 Web Page Design 4 May 16th, 2007 23:46
Container Problem in FireFox asengh Web Page Design 8 Dec 12th, 2006 16:23
container overlaps upon text resize in Firefox eksquall Web Page Design 4 Aug 1st, 2006 16:26


All times are GMT. The time now is 18:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42