468,242 Members | 1,591 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,242 developers. It's quick & easy.

how to do this?

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
1 1022
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.

Similar topics

4 posts views Thread by James | last post: by
5 posts views Thread by Scott D | last post: by
2 posts views Thread by Nick | last post: by
2 posts views Thread by Alexander Ross | last post: by
reply views Thread by Dan Foley | last post: by
5 posts views Thread by Lee Redeem | last post: by
5 posts views Thread by christopher vogt | last post: by
6 posts views Thread by Phil Powell | last post: by
1 post views Thread by Michel | last post: by
11 posts views Thread by Maciej Nadolski | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.