2

Users search for "10000" in Google

I write about loan costs and for me my positions in Google are important. I might rank at keywords like "Loan 10000".

Users like to read "10 000" in content

However for users when they read, it looks better like this: "Loan 10 000 SEK".

Number format in CSS or SEO-friendly workaround?

Is there a way in CSS we can add a space between numbers in CSS?

5

2 Answers 2

2

You could use a dirty SEO trick: putting plain "10000" in your page and replace it to "10 000" via javascript when it's displayed.

This way robots are more likely to index your "10000" while your users will see "10 000". I know taht your request implies CSS only, but I see no other workaround for what you want.

1
  • 1
    As there is no real solution with CSS I think this is the best alternative. Simple and even if the user has javascript disabled will at least see "10000" instead of "10 000" Apr 26, 2013 at 10:16
2

It is not possible in CSS without modifying markup. Using modified markup like

<span class=grp>100</span>000

you could use CSS for spacing:

.grp { padding-right: 0.2em; } /* or maybe a little smaller */

Search engines may get disturbed by inline markup so that they would not recognize this as the same as 100000 at the text level. But there does not seem to be much hard evidence on this.

I would not do this in CSS, since it is a matter cultural norms and conventions, not styling preferences. For languages that use a space as thousands separator, I would just use 10&nbsp;000.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.