habibhassani
habibhassani

Reputation: 506

Is there a way to vertically align Arabic font with English font?

Here is an example:

h1{
  display:inline-block;
}
    <h1>English Font</h1><h1>الخطوط العربية</h1>

As you can see the base lign isn't aligned.

Upvotes: 0

Views: 502

Answers (1)

Jackson
Jackson

Reputation: 3518

You can play with the line-height

h1{
  display:inline-block;
}
.arabic {
  line-height: 25px;
  vertical-align: bottom;
}
    <h1>English Font</h1><h1 class="arabic">الخطوط العربية</h1>

Upvotes: 1

Related Questions