Results 1 to 2 of 2

Thread: Switch Content - in questions that are longer than 1 line, how to wrap text?

  1. #1
    Join Date
    Sep 2006
    Location
    Menomonee Falls, WI
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Switch Content - in questions that are longer than 1 line, how to wrap text?

    1) Script Title: Switch Content - in questions that are longer than 1 line, how to wrap text?

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm

    3) Describe problem:

    [Not sure if this s/b posted on the HTML and/or the CSS forum(s) also, but I'm experiencing the problem in the Switch Content script.]

    My client has very long questions that wrap to the next line, under my plus and minus images, instead of under the first letter of the word on the first line. (She wants it to wrap like a bulleted item would.) Could you tell me if this is even possible to achieve, please?

    I have tried putting the question # in 1 cell in a table and the question text in the second cell, but that didn't work. I've also tried adding an inline style with text-indent, but that only indented the first line. I've looked for another attribute related to "text wrap" but cannot find one.

    Thanks so much!
    Kirsten

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Margin, most likely, or padding would do the trick. It is impossible for me to be too specific, without seeing what you have but, from the sound of it, I'd try something like so in the head of the page:

    Code:
    <style type="text/css">
    .switchcontent {
    margin-left:5em;
    }
    </style>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •