2 replies [Last post]
shane18
shane18's picture
User offline. Last seen 1 year 25 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-08-12
Posts: 4
Points: 6

How can I prevent this?

        <div id="NCCID_<?= $NCI->id ?>" style="clear: left; margin-bottom: 3px;">
          <div style="margin-right: 5px; min-height: 64px; background-color: #222222; font-size: 10px; color: #FFFFFF; word-wrap: break-word;">
            <img src="<?= $PICTURE ?>" style="float: left;">
            <div style="background-color: #2E302E;">
              <table cellspacing="0" cellpadding="0" style="font-size: 12px;">
                <tr>
                  <td style="width: 182px; text-align: left; padding-left: 2px;">
                    <span style="color: #FF0000;"><?= $NCI->from ?></span>
                    <span style="color: #FFFFFF;"> - </span>
                    <span style="color: #FE4D1B;"><?= $POSTED_TIME ?></span>
                  </td>
                  <td style="width: 180px; text-align: right; padding-right: 2px;">
                    <? if($UN == $NCI->from) { ?><img style="vertical-align: -1px;" title="Delete" src="images/x.png" onClick="DELETE_NEWS(<?= $NEWS->id ?>);"><? } ?>
                  </td>
                </tr>
              </table>
            </div>
              <? echo stripslashes($NCI->content); ?>
          </div>
        </div>

Using Doc Type HTML 4.01 Strict

shane18
shane18's picture
User offline. Last seen 1 year 25 weeks ago. Offline
newbie
Timezone: GMT-5
Joined: 2010-08-12
Posts: 4
Points: 6

Code w/o PHP

        <div id="NCCID_1" style="clear: left; margin-bottom: 3px;">
          <div style="margin-right: 5px; min-height: 64px; background-color: #222222; font-size: 10px; color: #FFFFFF; word-wrap: break-word;">
            <img src="test.jpg" style="float: left;">
            <div style="background-color: #2E302E;">
              <table cellspacing="0" cellpadding="0" style="font-size: 12px;">
                <tr>
                  <td style="width: 182px; text-align: left; padding-left: 2px;">
                    <span style="color: #FF0000;">test</span>
                    <span style="color: #FFFFFF;"> - </span>
                    <span style="color: #FE4D1B;">2:21 pm</span>
                  </td>
                  <td style="width: 180px; text-align: right; padding-right: 2px;">
                    <img style="vertical-align: -1px;" title="Delete" src="images/x.png" onClick="DELETE_NEWS(1);">
                  </td>
                </tr>
              </table>
            </div>
              blah blah blah
          </div>
        </div>

Deuce
Deuce's picture
User offline. Last seen 3 days 1 hour ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2005-11-20
Posts: 4416
Points: 1835

Prevent what? I would just

Prevent what? I would just suggest you have your users use spaces in their sentences, tends to make things easier to read.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph