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
    28
    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
    838
    Thanks
    172
    Thanked 90 Times in 90 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
    "The greatest revenge is to accomplish what others say you cannot do."
    ~ Unknown

    I used to be indecisive, but now I'm not so sure.

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 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'); 


  •  

    Posting Permissions

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