[wp-hackers] WP.com Stats Image

Marcos Sader | marcosmedia m at marcosmedia.com
Tue Jun 19 16:20:59 GMT 2007

On 6/19/07, Andy Skelton <skeltoac at gmail.com> wrote:
> 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%;
> }

Yes, or you can use absolute positioning and then move it out of screen, it
depends on  your css skills, there are plenty of way of hiding an element on
the screen ad still have it load in the page ;)

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

Marcos Sader
m at marcosmedia.com
http://defmay.com | http://marcosmedia.com

More information about the wp-hackers mailing list