[wp-hackers] WP.com Stats Image

Computer Guru computerguru at neosmart.net
Tue Jun 19 08:51:17 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"browsers have been known"

I just tested it with Opera 9, IE7, and FF2.... They're loading it here just
fine.

- -----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Andy Skelton
Sent: Tuesday, June 19, 2007 9:28 AM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] WP.com Stats Image

On 6/18/07, Matt <speedboxer at gmail.com> wrote:
> Wouldn't img#wpstats {visibility: hidden;} also work?

Have you tried it? IIRC visibility makes the element invisible but the
element still takes up space and affects layout.

CSS 2.1 Spec says:
"The 'visibility' property specifies whether the boxes generated by an
element are rendered. Invisible boxes still affect layout (set the
'display' property to 'none' to suppress box generation altogether)."

However, browsers have been known to skip loading any images falling
under a display:none rule. Thus using display:none will hurt your
stats. Forcing the image's dimensions to zero does not have this bad
effect. That explains the recommended CSS rule set.

If you want, you can try this instead:
img#wpstats {
width: 100%;
}

On http://andyskelton.com/ it really ties the page together.

Andy
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.1 (Build 1012)
Charset: us-ascii

wj8DBQFGd5kS3SICh4XKUt0RAj30AKDYAUSTXR6cy/IZ/qWIxL1v+EjgxwCgjWoq
VDHJ7wR/5YHSAuoGZHplT7k=
=Lfs9
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list