how to do this?

W

webfan

How to code this in HTML so that the display of text string as following:

(This is Text string 1...)
(Text string 2...)
(Text string 3...)

Will this be better put into a DIV or SPAN?

When to use DIV instead of SPAN?

How to specify the width of the DIV or SPAN so that when any of the text
strings larger than the width, it will automatically wrap itself?

Thank you very much!
 
R

RobG

webfan said:
How to code this in HTML so that the display of text string as following:

Wrong news group, ask in:

comp.infosystems.www.authoring.html

But before you do, you'd better make it look like you made some attempt
to read the specification and learn about HTML.

(This is Text string 1...)
(Text string 2...)
(Text string 3...)

Will this be better put into a DIV or SPAN?

P elements.

When to use DIV instead of SPAN?

RTFM:

<URL:http://www.w3.org/TR/html4/>

At the top and bottom of the page are links to an elements index, use
that to read about specific elements.

How to specify the width of the DIV or SPAN so that when any of the text
strings larger than the width, it will automatically wrap itself?

Read about CSS:

<URL:http://www.w3.org/TR/CSS21/>

At the top and bottom of the page are links to a properties index. Read
about height, width and overflow.

Ask questions about CSS in comp.infosystems.www.authoring.stylesheets,
but same advice as for the HTML group: at least show some attempt to
learn about CSS first (read some posts, the spec, examples, etc.)

Useful tutorials are at <URL:http://www.w3schools.com/> be aware that
they are helpful but not authoritative.
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top