vmavrou Posted October 30, 2009 Share Posted October 30, 2009 Hi, I have these two problems, first i'm trying to align text with these commands, <p><strong><P ALIGN="RIGHT"><?php echo $ptext; ?></P></strong></p></h1> but the text remains there at the center...has to do something with php or am i doing something wrong? and then i want to leave a blank line here.. <input type="submit" name="search" id="search" value="search" > <?php } ?> </center> <?php if (isset($_SESSION['logo'])) { ?> <center> <p> </P> // HERE I WANT TO LEAVE THE LINE <img src="<?php echo $adminupload.$_SESSION['logo']; ?>" alt="logo" ALIGN=BOTTOM> but it keeps stacking the upper button with the image.. Any ideas please? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
lemmin Posted October 30, 2009 Share Posted October 30, 2009 I think your problems are derived from more of the HTML that you aren't showing. I think the first line you posted isn't aligning because it is inheriting the center property from the H1 tag that it is in. Quote Link to comment Share on other sites More sharing options...
vmavrou Posted October 30, 2009 Author Share Posted October 30, 2009 Thanks for the reply the complete code is : <br /> <br /> <h1> <p><strong><P ALIGN="RIGHT"><?php echo $ptext; ?></P></strong></p></h1> <center><b><h2><?php echo $stext; ?></h2></b></center> so i don't this that this creates the problem..i don't know if the php inside creates a problem and the align is not working.is that possible? Quote Link to comment Share on other sites More sharing options...
lemmin Posted October 30, 2009 Share Posted October 30, 2009 Unless there is HTML in the variables being echoed, the PHP shouldn't be affecting the layout at all. Are you including any style sheets with your HTML? Quote Link to comment Share on other sites More sharing options...
vmavrou Posted October 30, 2009 Author Share Posted October 30, 2009 No i'm not using any style sheets..finally worked after trying and keep uploading,perhaps was a mistake by me. Thanks for your help and sorry bothering. 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.