width question

L

lisaastrong

Hello, I am new to this group and appreciate having it out there!


with a string like

<script>
var sometext = 'a long line of text...... text text text ... a long
line of text...... text text text';

// modify sometext string here

document.write(sometext);
</script>

can someone please show me various ways of precision to adjust the
width of the string before it is printed, using 100% javascript only
(no html tags please). hopefully the goal is to adjust it by pixel
width or something very approximate. Please let me know what my
options are.

Best wishes, Lisa Strong.
 
T

Thomas 'PointedEars' Lahn

with a string like

<script>

var sometext = 'a long line of text...... text text text ... a long
line of text...... text text text';

Should be splitted into several code lines using string concatenation
or a joined array.
// modify sometext string here

document.write(sometext);
</script>

can someone please show me various ways of precision to adjust the
width of the string before it is printed, using 100% javascript only
(no html tags please). hopefully the goal is to adjust it by pixel
width or something very approximate. Please let me know what my
options are.

None. Why would you need that?


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,158
Messages
2,570,882
Members
47,414
Latest member
djangoframe

Latest Threads

Top