How do i display php results horizontal?

Raft
Raft
Offline
0
Hi i'm new to php and need help with this..

I have a module that displays results vertically meaning:

result 1
result 2
result 3

i want a horizontal display:

result 1 result 2 result 3

can anyone put up some sample code of div setup to get this to work?

Thanks, any help will be greatly appreciated.
Responses (8)
  • Accepted Answer

    Wednesday, July 08 2009, 10:03 AM - #Permalink
    0
    the results are inside div html tags?

    then its a CSS and HTML thing, not PHP

    try to make the DIVs "display:block; width:200px; float:left;" (for instance).

    but dont do it if you dont know CSS
    The reply is currently minimized Show
  • Accepted Answer

    Raft
    Raft
    Offline
    Thursday, July 09 2009, 08:19 AM - #Permalink
    0
    can you give me an example of this?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 09 2009, 09:59 AM - #Permalink
    0
    wich is that module?
    post a link
    The reply is currently minimized Show
  • Accepted Answer

    Raft
    Raft
    Offline
    Thursday, July 09 2009, 05:10 PM - #Permalink
    0
    This is module is for eventlist, this is the php/div:

    defined('_JEXEC') or die('Restricted access');
    ?>





    eventlink) : ?>
    " title="title; ?>">

    title; ?>
    eventlink) : ?>



    use_modal) : ?>
    " class="modal" title="title; ?>">

    " class="modal" title="title; ?>">" alt="title; ?>" class="image-preview" />
    eventlink) : ?>

    venuelink) : ?>
    " title="venue; ?>">

    venue; ?>
    venuelink) : ?>









    This is the css:
    #left{text-align:center;float:left; margin:0px auto; display:block; width:120px; }


    and this is the result im getting, see attach image.
    I know this is not one of ur modules but any help will be appreciated. [img size=253]http://www.joomlamusicsolutions.com/images/fbfiles/images/eventsdisplay.jpg[/img]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Raft
    Raft
    Offline
    Thursday, July 09 2009, 05:13 PM - #Permalink
    0
    had a lil problem display code, i attach the file
    The reply is currently minimized Show
  • Accepted Answer

    Raft
    Raft
    Offline
    Thursday, July 09 2009, 05:15 PM - #Permalink
    0
    file attacht [file name=show_default.zip size=473]http://www.joomlamusicsolutions.com/images/fbfiles/files/show_default.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Raft
    Raft
    Offline
    Monday, July 13 2009, 07:14 AM - #Permalink
    0
    Help!! take a quick look at the code i know its an css or php loop issue but cant put my finger on it.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 13 2009, 04:54 PM - #Permalink
    0
    sorry man I can't take a look right now...
    you should try to ask in the joomla forum, wich is more generic... since your question has in fact nothing to do with MC.

    or you can wait till I have the time to take a look at the code... :lol:

    :)
    The reply is currently minimized Show
Your Reply