Previous Message
Next Message

Text Wrapping

Sent by Trystano on 5 June 2007 12:12


Text wrapping around

Have the following CSS and markup...


span.label { margin: 0; padding: 0; width: 40%; border-top: solid 1px #DDDDDD; border-right: solid
1px #AAAAAA; text-align: right; } 
span.value { margin: 0; padding: 0; font-size: 80%; border: 1px solid #BBBBBB;}

<div class="data-block">
    <span class="label">label text here</span>
    <span class="value">answer text here</span>
</div>

which comes out like the following...

        'Label Text' 'Answer Text'
             'lbl text' 'Another answer text'

But with this there is the possibility that the text within span.value can be quite long and can
then fall under the span.label text, which is not what I want. How can I prevent this so that long
text wraps under itself?

Thanks

Tryst

________________________________________________________________________
Get a FREE AOL Email account with 2GB of storage.  Plus, share and store photos and experience
exclusively recorded live music Sessions from your favourite artists. Find out more at
http://info.aol.co.uk/joinnow/?ncid=548.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread:

Possibly related: