: How can I condense a Source Sans Pro font so the characters almost touch when 30px size? I have a web site that is using the Adobe Source Sans Pro font. On the website I would like to
I have a web site that is using the Adobe Source Sans Pro font.
On the website I would like to create a logo using this or a similar font but I would like to have it so there is almost no spacing between the characters. Is there a way that I can do this just with css or would I have to use another font?
If I need to use another font can anyone suggest an open source / free to use font that I could use for this.
Thank you very much.
More posts by @Rivera951
2 Comments
Sorted by latest first Latest Oldest Best
You can use negative letter-spacing to achieve that effect.
See this example on codepen.
There is a CSS property you could use: letter-spacing, which can also have negative values.
p {
/* 16 * 0.0625 = 1px */
letter-spacing: 0.0625em;
}
The letter-spacing property controls the amount of space between each
letter in a given element or block of text. Values supported by
letter-spacing include font-relative values (em, rem), parent-relative
values (percentage), absolute values (px) and the normal property,
which resets to the font's default.
More info: CSS Tricks on letter spacing
If you only want to do this for the logo, you could have each letter in a separate span, and then apply a negative margin to the spans.
Something like:
span.letters {
display: inline-block;
margin-left: -3px;
}
Regarding the font choice, you could try with Open Sans.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.