1) Script Title: Cross Browser marquee
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm
3) Describe problem:
Hi folks,
How to add space between word? TIA
B.R.
satimis
1) Script Title: Cross Browser marquee
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm
3) Describe problem:
Hi folks,
How to add space between word? TIA
B.R.
satimis
Using the CSS word-spacing property..
Locate the var marqueecontent in your code and add changes:
See if it helpsvar marqueecontent='<nobr><font face="Arial"><span style="word-spacing:15px;">Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> If you find this script useful, please consider linking to us by <a href="../link.htm">click here.</a> Enjoy your stay!</span></font></nobr>'![]()
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
Hi rangana,
Your advice works here. Thanks.
Before posting I tried adding <tags.wordSpacing = 4> and </tags> on the places of your codes. It did not work.
Furthermore if for city having 2 words, e.g. New York, the words will be spaced evenly as other words. What code shall I apply instead of combining NewYork together?
B.R.
satimis
--I'm not certain on wordpress, but have you tried <tags style="word-spacing:4px;">and</tags>Before posting I tried adding <tags.wordSpacing = 4> and </tags> on the places of your codes. It did not work.
--Ideally, I should be industrious enough on dealing with this. I would separate NewYork from the <span>. Something like:Furthermore if for city having 2 words, e.g. New York, the words will be spaced evenly as other words. What code shall I apply instead of combining NewYork together?
Hope make some senseCode:<span style="word-spacing:4px;">My Favorite City is</span> NewYork. <span style="word-spacing:4px;">How about yours?..</span>![]()
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
Your advice works for me. Thanks.
Oh sorry for not explaining clear on my late posting.--Ideally, I should be industrious enough on dealing with this. I would separate NewYork from the <span>. Something like:
Code:<span style="word-spacing:4px;">My Favorite City is</span> NewYork. <span style="word-spacing:4px;">How about yours?..</span>
My question was supposing the complete line is only cities, say 80 cities. If some cities having 2/3 words is there a clue to link them together after space between words increased? Thanks
Edit;
Or add underscore "_" linking the words and make the underscore invisible?
B.R.
satimis
Last edited by satimis; 03-07-2008 at 04:02 AM. Reason: adding info
If that is the case, you could shift from the word-spacing property to white-spacing property..
Use the pre.![]()
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
I don't see another way around than using separate <span>s.
...or the word-spacingCode:<span style="word-spacing:4px;">My Favorite City is</span> NewYork. <span style="word-spacing:4px;">How about yours?..</span>re; trick. Maybe other members can provide another alternative.
![]()
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
Bookmarks