PDA

View Full Version : Firefox shifts my page content too much



Gertrude
03-19-2010, 02:12 PM
hello all,
the <H1> header at the top of my page is, in IE centred at the very top of the page,which is where i want and expect it to be. However in Firefox it is lower down the page, as though i have stuck a couple of <BR>'s above it, which i have not. Because of this, the Flash movies and other graphics and text below it are all unaligned and pushed down the page, completely buggering up the whole design layout of my homepage.:mad: If i try to compensate it for Firefox, then, obviously its all unaligned in IE. it all looks fine in Explorer though.

Any ideas?

thankyou.:)

Gertrude
03-27-2010, 06:14 PM
It is weird how sites can load differently in firefox than Internet Explorer. My old website had a messed up header when loading in firefox before I switched to CSS. No idea why it is

hi industriousfoe201, this kind of sorted out things for me on this occasion::)

<style type="text/css">
html, body, h1
{
margin: 0;
padding: 0;
}
</style>

and this:

<style type="text/css">
html, body, h1, embed, object
{
margin: 0px;
padding: 0px;
}
</style>

Gertrude
03-30-2010, 06:40 PM
thanks i needed this, im sure it will help others also

Hi tedane,

if you're really fed up with trying to get your pages looking the same in all browsers, their is allways this option:
JavaScript Tip: Browser Detection And Redirection (http://www.netmechanic.com/news/vol3/javascript_no15.htm) the article is pretty old but it does explain it quite well.

here's a newer code for Firefox,IE:
i-code.co.uk - JavaScript - Firefox Browser Redirect Scripts (http://i-code.co.uk/javascript/firefoxredirect.php)

:)