Help - Search - Members - Calendar
Full Version: Horizontal Spacing between letters
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
Amanda
I am trying to alter a pre-written code that allows for padding between words, however, I am trying to space out the characters in the words themselves. Here is the code I have for the basic text on the page:


.whitetext12, .orangetext15 {
padding: 5px;
font-family: Arial;
font-size: 13px;
color: rgb(0, 0, 0);
font-weight: normal;
font-style: normal;
text-decoration: none;
}

The 'padding: 5px;' is the padding between the words, I know, but is there a specific code for the spacing of letters?
Amanda
Nevermind guys, thanks anyways. I did some more searching and figured it out. In case you are wondering, it's

letter-spacing: #px;

Thanks anyways!
pandy
Yes. And for spacing between words 'word-spacing' is probably a better choice than padding. I don't know the situation though.
http://www.w3.org/TR/REC-CSS2/text.html#propdef-word-spacing
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.