Jump to content

Tiling vertically instead of horizontally?


aviatorisu

Recommended Posts

I'm not sure if this is a PHP issue or an HTML issue, but I'm having a little trouble with my PHP IF statements tiling vertically instead of horizonally like I want them to.

This code:

[code]<?php
if ( $picture1 != NULL ) {
    echo "<BR><A HREF='' TARGET=''>[1]</A>";
}
?>

<?php
if ( $picture2 != NULL ) {
    echo "<BR><A HREF='' TARGET=''>[2]</A>";
}
?>
[3]
[4]
[5][/code]

is producing this result:

[img]http://www.lasvegas247.net/Screen011.jpg[/img]

I've not had this problem before, and my brain is melting trying to think about it and redo it 5 billion times.  I want it to continue to tile horizonally like 3, 4, and 5 do.

Anyone have any thoughts??

Thanks,

~Z~
Link to comment
Share on other sites

It's an html issue caused by your <BR> tags.  If you omit them, the images would run horizontally until they ran out of screen space then drop down and continue.  You could 'control' the output by reconstructing your code to place the images in table data cells and periodically ending/starting a new row in a table.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.