• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Easy --String Q

Participant ,
Sep 22, 2006 Sep 22, 2006

Copy link to clipboard

Copied

I have smth like this on my code :         #wrap(ITEM1,80)#

It is a table column...The first line of the string (item1) displayed after 8 spaces but the 2nd line is displayed before 8 spaces...I want same alingment for both lines

any idea ?

TOPICS
Advanced techniques

Views

265

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 22, 2006 Sep 22, 2006

Copy link to clipboard

Copied

I suggest putting the output in an HTML table. This will keep your spacing and alignment, if that's what you're after.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 22, 2006 Sep 22, 2006

Copy link to clipboard

Copied

Don't use nbsp at all. Use CSS padding.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 22, 2006 Sep 22, 2006

Copy link to clipboard

Copied

Pls clarify yourself..

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 22, 2006 Sep 22, 2006

Copy link to clipboard

Copied

LATEST
One way:

<style type="text/css">
.MyTable td{
padding-left: 8ex;
}
</style>
<table class="MyTable">
<tr>
<td>#wrap(ITEM1,80)#</td>
</tr>
</table>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation