0

Screenshot You can see in the screenshot that the first letter goes out of the box. I tried font-kerning property but it doesn't fix that. What should I do to start the letter "T" from the beginning.

PS: Only display block property is assigned to this paragraph, nothing else, and I think this font is kind of like that. Plus, I don't want to do this through paddings or margins. There must be a CSS property for this. Thanks

<div class="custom-font">
  <p>We are one big family implanted in the whole world.</p>
  <p>Winning, progress and teamwork are our priority.</p>
  <p>That’s why we design products exclusively for an elite</p>
</div>

JSFIDDLE: https://jsfiddle.net/2jstmkp4/

Umer Javed
  • 404
  • 6
  • 17

2 Answers2

-1

I think the easiest way to do it is through padding, but since you don't want to use it I don't know what other easy solution there is.

What is the reason you don't want to use padding/margin?

  • Because that is not a generic way to do this. – Umer Javed Oct 24 '18 at 13:25
  • 1
    The problem is that your font goes out of its boundaries, it is wider than the reserved space on your screen. The part that falls of your block is outside the space for the char. So no css property will detect this. – Rob Rombouts Oct 24 '18 at 13:34
-1

Try add this css code for paragraph:

p {
 overflow-wrap: break-word;
}
WebCoder
  • 62
  • 10