By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

how to do this?

P: n/a
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!
Feb 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
webfan wrote:
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.

--
Rob
Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.