Firefox CSS issues

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Sun Jan 29, 2006 7:04 am    Post subject: Firefox CSS issues Reply with quote

Hello all. I have created a web site here:

http://rtadams89.dyndns.org:9555/baseball/index.html

It uses CSS to position the page elements. In IE everything shows up fine, but FF and opera cause the content to move and cover the logo banner at the top. It's hard to explain in words, but if you view the site in IE and then FF you'll see what I mean. You can download my CSS file for viewing here:

http://rtadams89.dyndns.org:9555/baseball/extra/emx_nav_left.css

Anyone know how to fix this?
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Jan 29, 2006 2:10 pm    Post subject: Reply with quote

In your css file, the #banner height needs to be changed to 100px.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Jan 29, 2006 2:17 pm    Post subject: Re: Firefox CSS issues Reply with quote

RTAdams89,

IE has a special interpretation of the "Box model" (what padding, margins, and relative positions mean) which is different from the other browsers (and the CSS specification).

In the specification, you can read that "When a box B is relatively positioned, the position of the following box is calculated as though B were not offset." (http://www.w3.org/TR/REC-CSS2/visuren.html). That's what Opera and FF do with your second box (Both the first and the second are relative. The position of the first is computed according to the page and the second too). But in IE, the second box is computed relatively to the first hence the problem.

We recommend reading http://www.alistapart.com/articles/flexiblelayouts/ for more details about this issue.

The easiest solution in our opinion is to position the first block absolutely using margins (instead of left and top) and by removing position: relative from the CSS definition of #banner.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Sun Jan 29, 2006 4:02 pm    Post subject: Reply with quote

You lost me on that last one, but changing the banner height to 100px seems to have done the trick. If you don't mind, could someone test the site in opera and any other browsers i have. I only have IE and FF right now.
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Jan 29, 2006 4:22 pm    Post subject: Reply with quote

Your site looks the same in Opera. ;)
Only thing is your background gradient tends to disappear behind the pagecell
because I have a much higher resolution for my monitor.
Back to top View user's profile Send private message Visit poster's website
RTAdams89
-


Joined: 06 Nov 2005
Posts: 102

PostPosted: Sun Jan 29, 2006 4:27 pm    Post subject: Reply with quote

The background is, unfortunately, a problem that may remain. As you know, there is no way to define a width for the background image in CSS, so I can't make it "stretch" to fit the resolution. Any other workarounds?
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Jan 29, 2006 4:34 pm    Post subject: Reply with quote

You could make the pagecell "fixed" as well.
Or, you can take a look at this page for an idea...
http://www.htmlite.com/faq022.php
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group