Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Align left in PHP

    Can some one help me with this?

    Code:
    echo "<b>$comments</b>";
    My php script is in a DIV that is has text-align:center; but I need that one string called Comments, to come out aligned to the left, and maybe even with some left padding. How can I attach some style to this line of code.

    Thanks...

    batch

  • #2
    New Coder
    Join Date
    Feb 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, figured it out...

    just in case anyone ever stumbles across this...

    [CODE]echo "<p style=\"text-align:left;\"><b>$comments</b></p>";

  • #3
    New Coder
    Join Date
    Feb 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, figured it out...

    just in case anyone ever stumbles across this...

    Code:
    echo "<p style=\"text-align:left;\"><b>$comments</b></p>";


  •  

    Posting Permissions

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