how to display image and description side by side? left image and right side desc?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • romanticraj
    New Member
    • Dec 2012
    • 3

    how to display image and description side by side? left image and right side desc?

    this is my code

    Code:
    echo '<img src="'.$enclosure[0]->get_link().'"';
    echo substr($item->get_description(), 0, 200);
    right now, its showing the image first and the description in the next line. i want to display image right side and description left side?

    how to echo these two statements in a single line output.?
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    It has nothing to do with how you echo the elements. You just need to set up the styles to allow for the text to be on the same line as the image. You need to float the image.

    Comment

    • romanticraj
      New Member
      • Dec 2012
      • 3

      #3
      thank you. i have fixed it now.... thank you very much...

      Comment

      Working...