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
    Jun 2012
    Posts
    29
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Smile re float text to right of image help

    hi hope someone can kindly help me out. i ahve the php code and fails to float the text to the right of image

    This part displays the image and text to right is ok

    "<div style='padding-left:655px; padding-top:45px;align=left;'>$imagen;
    <span style='color:$color1;font-size:11px;'>".strftime('%A',mktime(0,0,0,$mx,$dx+$dia,$ax)).":</span>;


    [now the text just floats at bottom of image]


    <span style='color:$color1;font-size:12px;'>$valor[1] - $valor[2];</span>



    appreciate your help thanks in advance

    ron

  • #2
    Regular Coder low tech's Avatar
    Join Date
    Dec 2009
    Posts
    891
    Thanks
    174
    Thanked 102 Times in 102 Posts
    Hi

    Try


    Code:
    /* add to css */
    .cf:before, .cf:after { 
    content: ""; 
    display: table; 
    }
    .cf:after { clear: both; }
    .cf { zoom: 1; }

    set
    Code:
    class="cf"
    on the container div

    LT

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Not a thing to do with PHP. Moving to HTML/CSS.
    Positioning or rendering is not handled by PHP. You may generate the output in it so the change itself *could* be within PHP code, but you are still modifying the HTML or CSS itself.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


  •  

    Posting Permissions

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