Forums

Align one image and one php script (2 posts)

  1. lex244
    Member
    Posted 4 months ago #

    Hi there!

    I was wondering if thre is any possibility to align on one row one image and one php script.

    For exemple:

    This image: https://lh5.googleusercontent.com/-4Iz08_497eQ/TyQuWUOvXmI/AAAAAAAAAF0/ghXJaKK1uG8/s434/nwbnn.png

    and this php code: <?php if (class_exists('Gallery')) { $Gallery = new Gallery(); $Gallery -> slideshow($output = true, $post_id = null); }; ?>

    I've tried some methods... but with no success!

    p.s. I try to use those two things in my blog header.php

  2. vtxyzzy
    Member
    Posted 4 months ago #

    I am not sure exactly what you mean, but if you want to place an image on the left and a slideshow from the php code on the right, you should be able to do it like this:

    • Create a div to surround both items.
    • Output the image with a class that includes 'float: left;' in its CSS.
    • Output the php slideshow with a class that includes 'float: right;'
    • Close the div.

    You may have to adjust the widths of everything to get the parts to actually line up.

Reply

You must log in to post.

About this Topic

Tags