PDA

View Full Version : statcounter stretching column - and a solution


elck
08-29-2005, 08:58 AM
The best place for statcounter on my page is inside a table, in the first, narrow, column.

While loading the page, statcounter stretches this column.
When the page is loaded the layout is back to normal.

It makes the page look jumpy.

If the "table knew in advance how wide the statcounter entry would be" so to speak, as it does not take more than 120px or so, things would look a lot better

I hope you understand what I mean, not knowing the code I do not know if it is hard to implement this though.

webado
08-29-2005, 01:05 PM
I'm not sure if using the text counter would solve your problem in this case.

Arne
08-29-2005, 07:44 PM
Where is the site? Would like to take a look, to see what causing this 8)

robinev
08-30-2005, 12:18 AM
While loading the page, statcounter stretches this column.
When the page is loaded the layout is back to normal.

You can avoid that by putting the StatCounter code within a div with defined width and "overflow: hidden".

Example:
<div style="width: 34px; height: 13px; overflow: hidden"> [[counter code]] </div>

webado
08-30-2005, 12:25 AM
Good tip, Robinev :lol:

Somebody should make this a sticky.