On 6/20/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I was wondering if anyone has a link or information as how to best handle
> text with CSS.  By text I mean a line of text that may include 3 pieces of
> information, like name, phone, and email address.
>
> I found a site that mentioned word-spacing, but that won't work because I
> don't want a large amount of spacing between the first and last name.

Is the information you're trying to present best represented by a
table?  You may find that if you're listing several contacts, a
"contacts table" might be the best way to do it.

One pure CSS solution would look like this:

<p><span>Name</span><span>Phone</span><span>Email</span></p>

p span{ display: block; float: left; margin: 0 10px; }

But again, CSS isn't about eliminating tables--its about learning to
use them only when the information you're presenting wouldn't be best
presented in a table.

Brian
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to