Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have a custom italic css property that is less slanted?

Tags:

html

css

I am following a design that contains a slanted text.
I used font-style:italic but the result is too much.

I am finding a way to make a custom css to have class that will make the text a little less slanted than the default italic property.

See images below: (left = design; right = html/css)
THE DESIGN MY IMPLEMENTATION

Is there a way? Is this possible to achieve (even using a different approach)?

like image 692
clintgh Avatar asked Mar 31 '16 07:03

clintgh


1 Answers

You can try with CSS3 skew() property like this :

See this fiddle

h1
{ 
text-transform: uppercase; 
font-family: arial; 
transform: skew(-13deg);
-webkit-transform: skew(-13deg);
}
like image 73
Vincent G Avatar answered Oct 05 '22 06:10

Vincent G