www.webdeveloper.com
Results 1 to 5 of 5

Thread: tables no wrap

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    10

    tables no wrap

    Hello,
    I am a newbe.

    I am trying to make a table. Where the cells do not wrap text.
    I am trying

    <table border='1'>
    <tr>
    <td nowrap='nowrap'>Client Contact:</td>
    <td align=left nowrap='nowrap'>$clientContact</td>
    <td nowrap='nowrap'>Client Contact Phone:</td>
    <td align=left nowrap='nowrap'>$clientContactPhone</td>
    <td nowrap='nowrap'>Client Email Address:</td>
    <td align=left nowrap='nowrap'>$clientEmailAddress</td>
    </tr>

    However I am still getting wrap in the variable cell.
    Any help in fixing this?

    thanks

  2. #2
    Join Date
    Aug 2006
    Posts
    1,897
    Have you tried using CSS, like:
    Code:
    <td style="white-space:nowrap">
    The 'nowrap' html is deprecated, depending on what doctype you're using.

    Dave

  3. #3
    Join Date
    Apr 2012
    Posts
    10
    thanks for your help.
    I am using IE 7.

    <td style="white-space:nowrap">
    Does not seem to work. I am still seeing text wrap in the variables.

    $clientContactPhone
    $clientEmailAddress

    Is this due to the variable is not static text?
    I would think it should work

    Code:
            <tr>       
            <td style='white-space:nowrap'>Client Contact:</td>
            <td style='white-space:nowrap'>$clientContact</td>
            <td style='white-space:nowrap'>Client Contact Phone:</td>
            <td style='white-space:nowrap'>$clientContactPhone</td>
            <td style='white-space:nowrap'>Client Email Address:</td>
            <td style='white-space:nowrap'>$clientEmailAddress</td>
            </tr>

  4. #4
    Join Date
    Apr 2012
    Posts
    10
    thanks for your help.
    I am using IE 7.

    <td style="white-space:nowrap">
    Does not seem to work. I am still seeing text wrap in the variables.

    $clientContactPhone
    $clientEmailAddress

    Is this due to the variable is not static text?
    I would think it should work

    Code:
            <tr>       
            <td style='white-space:nowrap'>Client Contact:</td>
            <td style='white-space:nowrap'>$clientContact</td>
            <td style='white-space:nowrap'>Client Contact Phone:</td>
            <td style='white-space:nowrap'>$clientContactPhone</td>
            <td style='white-space:nowrap'>Client Email Address:</td>
            <td style='white-space:nowrap'>$clientEmailAddress</td>
            </tr>

  5. #5
    Join Date
    Aug 2006
    Posts
    1,897
    Do you have a link to the live site we can look at? I suspect there is something else causing the issue.

    Dave

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles