SearchSearch   

cross graphic gets shifted down on some firefox browsers

 
   Webmaster Forums (Home) -> CSS RSS
Next:  How to make different value per browser?  
Author Message
dontwantspam

External


Since: Jul 20, 2007
Posts: 3



(Msg. 1) Posted: Fri Jul 20, 2007 4:16 am
Post subject: cross graphic gets shifted down on some firefox browsers
Archived from groups: comp>infosystems>www>authoring>stylesheets (more info?)

Hello everyone,
I'm working on this css site redesign
http://www.maranathamalta.com/4given/testingmain.php

I've tested on my machine running XP using Firefox 2.0.0.4, IE6 and IE7.
It looks right on those browsers.
However on some other machines running XP, MacOS and Linux, using firefox 2 and
firefox 1.5, the cross graphic gets shifted down. On another Linux machine with
firefox 2, the graphic looks right..
I'm trying to determine what's causing this..
can anyone please help..
Back to top
Bergamot

External


Since: Sep 27, 2006
Posts: 727



(Msg. 2) Posted: Fri Jul 20, 2007 9:04 am
Post subject: Re: cross graphic gets shifted down on some firefox browsers
Archived from groups: per prev. post (more info?)

dontwantspam RemoveThis @invalid.inv wrote:
> http://www.maranathamalta.com/4given/testingmain.php
>
> I've tested on my machine running XP using Firefox 2.0.0.4, IE6 and IE7.
> It looks right on those browsers.

Maybe for you it does. Positioning looks not so clean with my settings,
in any browser. I think you don't fully understand how positioning
methods are supposed to work.
http://brainjar.com/css/positioning/

> However on some other machines running XP, MacOS and Linux, using firefox 2 and
> firefox 1.5, the cross graphic gets shifted down.

Your lack of a proper DOCTYPE triggers quirks mode in browsers. Don't
expect any consistency unless you invoke standards mode. Use HTML 4.01
Strict for best compatibility.
http://www.hut.fi/u/hsivonen/doctype.html

And validate your code to eliminate syntax errors as possible causes of
rendering issues:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

--
Berg
Back to top
dontwantspam

External


Since: Jul 20, 2007
Posts: 3



(Msg. 3) Posted: Fri Jul 20, 2007 9:05 am
Post subject: Re: cross graphic gets shifted down on some firefox browsers
Archived from groups: per prev. post (more info?)

In article <5gbtq0F3dtapgU1.DeleteThis@mid.individual.net>, Bergamot says...

>Your lack of a proper DOCTYPE triggers quirks mode in browsers. Don't
>expect any consistency unless you invoke standards mode. Use HTML 4.01
>Strict for best compatibility.
>http://www.hut.fi/u/hsivonen/doctype.html

You are mistaken.
I'm using the (X)HTML5 recommended DOCTYPE actually which triggers standards
mode.
I need to point out to you that I'm not writing HTML 4.01..

>
>And validate your code to eliminate syntax errors as possible causes of
>rendering issues:
>http://validator.w3.org/
>http://jigsaw.w3.org/css-validator/
>
I didn't have syntax errors, only a couple of logical errors as per my other
post..
Back to top
Jonathan N. Little

External


Since: Feb 02, 2005
Posts: 2526



(Msg. 4) Posted: Fri Jul 20, 2007 9:29 am
Post subject: Re: cross graphic gets shifted down on some firefox browsers
Archived from groups: per prev. post (more info?)

dontwantspam DeleteThis @invalid.inv wrote:
> Hello everyone,
> I'm working on this css site redesign
> http://www.maranathamalta.com/4given/testingmain.php
>
> I've tested on my machine running XP using Firefox 2.0.0.4, IE6 and IE7.
> It looks right on those browsers.
> However on some other machines running XP, MacOS and Linux, using firefox 2 and
> firefox 1.5, the cross graphic gets shifted down. On another Linux machine with
> firefox 2, the graphic looks right..
> I'm trying to determine what's causing this..
> can anyone please help..
>

Just a quick look revealed a couple of things, you didn't validate did you?

h2
{

position:absolute;
top: 510px;
/*left: 19%;breaks movement*/
margin-left:-20px;
float:left;
z-index:40;
background: transparent url(/4given/i/centrephoto.jpg) no-repeat top left;
width:106; <--106 what?
height:101; <--101 what?
}

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Back to top
dontwantspam

External


Since: Jul 20, 2007
Posts: 3



(Msg. 5) Posted: Fri Jul 20, 2007 9:29 am
Post subject: Re: cross graphic gets shifted down on some firefox browsers
Archived from groups: per prev. post (more info?)

thanks, I had validated it earlier.. though not my latest changes as the w3c css
validator is offline..

I fixed the problem - it was my use of em rather than px's... em's shift the
graphics if you change font size.. that was the difference, font size..
Thanks anyway.

In article <94edd$46a0b8cc$40cba7c5$30233@NAXS.COM>, Jonathan N. Little says...
>
>
>Just a quick look revealed a couple of things, you didn't validate did you?
>
>h2
>{
>
>position:absolute;
>top: 510px;
>/*left: 19%;breaks movement*/
>margin-left:-20px;
>float:left;
>z-index:40;
>background: transparent url(/4given/i/centrephoto.jpg) no-repeat top left;
>width:106; <--106 what?
>height:101; <--101 what?
>}
>
Back to top
Jonathan N. Little

External


Since: Feb 02, 2005
Posts: 2526



(Msg. 6) Posted: Fri Jul 20, 2007 10:56 am
Post subject: Re: cross graphic gets shifted down on some firefox browsers
Archived from groups: per prev. post (more info?)

dontwantspam RemoveThis @invalid.inv wrote:
> thanks, I had validated it earlier.. though not my latest changes as the w3c css
> validator is offline..
>
> I fixed the problem - it was my use of em rather than px's... em's shift the
> graphics if you change font size.. that was the difference, font size..
> Thanks anyway.

Hopefully those who are in of being *4 GIVEN* are not also visually
impaired! Eh?


[topleft.png] [topcentre1.png]
*

*

[topright.png]
*

*

[centrephoto.jpg]
*

*

[bottomleft.png] [bottomright.png] [bottomcentre.jpg] [maranatha.png]





--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Back to top
Bergamot

External


Since: Sep 27, 2006
Posts: 727



(Msg. 7) Posted: Fri Jul 20, 2007 4:36 pm
Post subject: Re: cross graphic gets shifted down on some firefox browsers
Archived from groups: per prev. post (more info?)

dontwantspam.DeleteThis@invalid.inv wrote:
>
> I'm using the (X)HTML5 recommended DOCTYPE

Recommended by who? XHTML is pretty useless, you know. HTML5 isn't
really anything to get excited about, either. That's a discussion for a
different newsgroup, of course.

> I need to point out to you that I'm not writing HTML 4.01..

I would point out to you that your trendy (X)HTML5 page is still broken,
but it seems you have already removed it.

--
Berg
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> CSS
Page 1 of 1

 
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