PDA

View Full Version : css word spacing



killahert
July 17th, 2007, 12:38 PM
hi ppl, wondering if this has something to do with the css.
I managed to load dynamic text into flash using css to format text however when I test the movie I have gap between words. see image

http://img505.imageshack.us/img505/4734/untitledjb1.jpg

same thing applies to my <li> tags

here is a copy of my css:



.title {
font-size: 17px;
font-weight: bold;
color: #ff6600;
font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; }
.body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000; }
.fax {
font-size: 11px;
font-weight: bold;
color: #ff6600;
font-family: Verdana, Arial, Helvetica, sans-serif; }
.tel {
font-size: 11px;
font-weight: bold;
color: #ff6600;
font-family: Verdana, Arial, Helvetica, sans-serif; }
.email {
font-size: 11px;
font-weight: bold;
color: #ff6600;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: underline; }
.bullet {
font-size: 11px;
color: #ff6600;
font-family: Verdana, Arial, Helvetica, sans-serif; }
.address {
font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif;
font-size: 12px;
color: #000000;
font-weight: normal;


and here is my txt file sample




content=
<p class='title'>Contact Kathy</p>
<p class='address'>
Adrress
1234 St.
USA 32714
</p><br>
tel: <p class='tel'>407-123-4567</p>
fax: <p class='fax'>407-123-4567</p>
email: <p class='email'>my@email.com</p>
<br>

ratherblue
July 17th, 2007, 01:17 PM
li tags have built in margins and padding that will cause those gaps. you need to specify css for those, too

thats all folks
July 17th, 2007, 01:22 PM
Did you try adding "word-spacing:" in the css, not sure if it would work but just a thought.

killahert
July 17th, 2007, 02:02 PM
Did you try adding "word-spacing:" in the css, not sure if it would work but just a thought.

yeah I tried that it didn't work, but I will have to figure out the<li> tag formating