Welcome to Bucaro TecHelp!

Bucaro TecHelp
HTTPS Encryption not required because no account numbers or
personal information is ever requested or accepted by this site

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Set the Font Slant

Using the CSS skew transform you can set a font's slant angle. To do this, each letter of a word or sentence is placed in a span element, and a class defining the transform is applied to each span.

At this time, the transform property is not supported in all browsers, but Firefox supports the -moz-transform property, and Internet Explorer supports the -ms-transform property. The syntax of the skew transform is shown below:

transform: skew(x-angle, y-angle)

The x-angle is the amount of back slant the letter or digit will have. To give a letter or digit a forward slant you would use a negative x-angle. You would set the y-angle to 0 or, for an even more crazy slant effect, set the y-angle to a non-zero value.

H E L L O

Show below is the code for the slanted text shown above:

<style type="text/css">
.slant
{
float:left;
font-family:courier;
font-size:30px;
transform:skew(30deg,0deg));
-moz-transform: skew(30deg, 0deg); /* Firefox */
-ms-transform: skew(30deg, 0deg); /* IE 9 */
} 
</style>

<span class="slant">H</span>
<span class="slant">E</span>
<span class="slant">L</span>
<span class="slant">L</span>
<span class="slant">O</span>

More CSS Quick Reference:
• Set an Element's Overlap (z-index)
• Set the Border Width
• CSS background-clip Property
• Set the Border Style
• Use an External Style Sheet
• Use word-wrap Property to allow Line Breaks in the Middle of Words
• Set the Font Slant
• Highlight Text
• Set an Element's Visibility
• Set an Element's Float

RSS Feed RSS Feed

Follow Stephen Bucaro Follow @Stephen Bucaro



Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2024 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268