Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7165843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:19:01+00:00 2026-05-28T14:19:01+00:00

I have the following text: ★ ★ ★ ★ ★ consisting of five stars.

  • 0

I have the following text:

★ ★ ★ ★ ★

consisting of five stars. (character 9733)

I need to have it the same (or approximately same) letter-spacing in all browsers. So far I have tested it in Opera, IE9, FF8 and Chrome 16.

In IE9 and FF it looks the same, in Opera it’s slightly different and Chrome is the most problematic one. See the image:

enter image description here

In this example CSS property letter-spacing is set to “0px”.
Is there any cross-browser way to force equally wide spaces between characters?

I would appreciate any help.

**EDIT: SELF-SOLVED

**EDIT2: Original question was edited to make it more clear what was actually the issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:19:02+00:00Added an answer on May 28, 2026 at 2:19 pm

    I am well aware of the different font rendering in various browsers, but the main issue was the different letter-spacing.

    I solved it with JS this way (pseudocode):

    expectedOffsetWidth = [number of letter] * [font size in pixels];
    offsetDeviation = expectedOffsetWidth - wrapperElement.offsetWidth;
    wrapperElement.style.letterSpacing=Math.round([original letter spacing] + parseInt(offsetDeviation) / [font size in pixels])+"px";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following text: Whenever I try to add letter-spacing: -1px the text
I have the following text, I need to extract the exception name and the
I have the following text, I need to extract the exception name and the
I have the following text: abcabcabcabc<2007-01-12><name1><2007-01-12>abcabcabcabc<name2><2007-01-11>abcabcabcabc<name3><2007-02-12>abcabcabcabc<name4>abcabcabcabc<2007-03-12><name5><date>abcabcabcabc<name6> I need to use regular expressions in order
I have the following text which will always follow the same format: 1 13
I have the following text file for which I need to compare values from
I have following text I made this video on my birthday. All of my
I have following string: text = '20 as a % of 50' I need
I have the following text string: "Gardening,Landscaping,Football,3D Modelling" I need PHP to pick out
I have the following text; country=france name=jean country=germany name=michael country=england name=jack I want it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.