aviatorisu Posted September 4, 2006 Share Posted September 4, 2006 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~ Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 4, 2006 Share Posted September 4, 2006 You need to put a <BR> before the [3] [4] and [5] Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 4, 2006 Share Posted September 4, 2006 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. Quote Link to comment Share on other sites More sharing options...
aviatorisu Posted September 4, 2006 Author Share Posted September 4, 2006 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~ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.