text alignment, right

(4 posts) (2 voices)

Tags:

No tags yet.

  1. fastscot, Member

    No matter what I try, I cannot get text to right align. How can I do that - I've tried using align="right" in the <tr> and <td> tags as well as style position etc. but nothing works. Here is my code sample.

    select 'dbr.purehtml', '<table align="center" width="800" border="2"><tr><td bgcolor="#FF0000">';
    select 'dbr.hideheader';
    select 'dbr.colstyle', 1, mydbr_style('medbold');
    select concat('Open Order List as of ', date(now()));
    select 'dbr.purehtml', '</td></tr></table>';

    medbold = [font-weight:bolder;font-size:20px;padding-top:2px;padding-bottom:2px;padding-left:2px;padding-right:2px;position:relative;right:-10px;]

  2. myDBR Team, Key Master

    select 'dbr.colstyle', 1, '[text-align:right]';

    --
    myDBR Team

  3. fastscot, Member

    That didn't work. I even tried

    select 'dbr.colstyle', 1, '[text-align:right]';
    select concat('Open Order List as of ', date(now()));

    without any table and it is still centered.

  4. myDBR Team, Key Master

    You are trying to align just a plain text in report and not the text inside the result tables cell?

    Use:
    select 'dbr.css', 'div.right_text { text-align: right; }';
    select 'dbr.text', concat('Open Order List as of ', date(now())), 'right_text';

    --
    myDBR Team


Reply

You must log in to post.