Alignment help needed....should be easy

Discussion in 'HTML & Website Design' started by Wimbledon, Aug 30, 2009.

  1. #1
    I am hoping this should be a relatively simple problem to fix. I am a newbie with code and am trying to insert the right code on my webpage. I am trying to enter this in the Wordpress HTML editor on a page.

    I want this shortcode aligned left:

    [starratingmulti id=1 tpl=12 element_size='24' average_size='24']

    and this code aligned right, all together on the same line:

    <?php echo adrotate_banner('3'); ?>

    Basically, I want the adrotate banner to show to the right of the starratingmulti.

    I am using the runPHP plugin which allows me to have the php evaluated with the post.

    I would greatly appreciate it if anyone could help me formulate the right code! I have been struggling with this for a while.
     
    Wimbledon, Aug 30, 2009 IP
  2. Wimbledon

    Wimbledon Greenhorn

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    Any ideas anyone?
     
    Wimbledon, Aug 31, 2009 IP
  3. Necrospasm

    Necrospasm Peon

    Messages:
    76
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    never coded for wordpress but you can try the following :

    or possibly

     
    Necrospasm, Aug 31, 2009 IP
  4. Hemuro

    Hemuro Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    try:

    <?php echo adrotate_banner('3'); ?>
    try this:
    <table>
    <tr>
    <td style="text-align:left">[starratingmulti id=1 tpl=12 element_size='24' average_size='24']</td>
    <td style="text-aling:right"><?php echo adrotate_banner('3'); ?></td>
    </tr>
    </table>

    granted not in the same line in the code, but displays as if it was. it they don't separate to the left and right, then put a td in between or use padding.
     
    Last edited: Aug 31, 2009
    Hemuro, Aug 31, 2009 IP
  5. Wimbledon

    Wimbledon Greenhorn

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #5
    Thanks for both of your posts.

    Hemuro's code is perfect! :)
     
    Wimbledon, Aug 31, 2009 IP