Jump to content

Archived

This topic is now archived and is closed to further replies.

aviatorisu

Tiling vertically instead of horizontally?

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~

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
I'm an idiot...I didn't even see that I had BR tags in there!

Issue resolved.  Chalk one up AGAIN for the PHPFreaks!

~Z~

Share this post


Link to post
Share on other sites

×

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.