Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to make css letter-spacing: 0.5 px?

I ran across the problem, I need to make it easy for users to read the text, so I used letter-spacing of 1 px, but it looks ugly, so I thought I'll use half a pixel so 0.5px, but it doesn't work, I tried using em attributes, but didn't achieve the task.

So is there a way to make letter spacing half pixel (cross browser solution if possible)

like image 500
Ilja Avatar asked Oct 18 '11 17:10

Ilja


People also ask

Can you modify letter-spacing in HTML?

HTML has a standard width on the space between characters, based on the font size. This is usually the width you want to use, but there may be instances where you want a specific width of the text, without having to change the font size. This can be done by changing the distance between the words or the characters.

Can you kern in CSS?

The CSS font-kerning property defines the way specific pairs of letters are spaced. You see, fonts often contain information about how much breathing room a character has on its left and right edges. The proper term for the spacing is sidebearings.

How do you remove text spacing in CSS?

In this CSS word-spacing example, we have removed 3px of space between the words by setting a -3px value for the word-spacing property. This removes some of the word spacing that has been added by the selected font.


1 Answers

This bug has been reported back in 2008 and is confirmed. So if someone feels like hacking into webkit that would make a lot of designers happy.

https://bugs.webkit.org/show_bug.cgi?id=20606

like image 68
idFlood Avatar answered Sep 22 '22 12:09

idFlood