I'm building a webpage from PSD. At there, I've seen some little bit curved text.
Look the above 3 images. They aren't the straight line. They're little bit curved/oblique/awry. So, how can I make that text by CSS?
I'm building a webpage from PSD. At there, I've seen some little bit curved text.
Look the above 3 images. They aren't the straight line. They're little bit curved/oblique/awry. So, how can I make that text by CSS?
It seems like a skew transformation would do the job: CSS3 skew at MDN
When you look closely, the baseline of the text is not curved but rotated. This transformation can be done with:
transform: rotate(5deg);
Be sure to support all browsers, e.g.:
-webkit-transform: rotate(5deg);
Using CSS3 transforms. Make sure your target browsers support it: http://caniuse.com/#feat=transforms2d Also, you might need to use prefixes to make it work in all browsers.
<p>Texty ipsum</p>
<style>
p {
transform: rotate(-4deg);
}
</style>