holz_bee Posted April 26, 2007 Share Posted April 26, 2007 hello i wonder if you can help! its really simple yet i can get it to work! i want to align something i have echoed right so there is a considerable gap between that and something else i have echoed! where do i put the script and what do i put! thank you for you help here is the code echo("<div> <B>Title ______________ </b>"); echo($row["Title"]); in stead of the line i want it justified right! Thank you again Holly Quote Link to comment https://forums.phpfreaks.com/topic/48803-simple-fix-alignment/ Share on other sites More sharing options...
roopurt18 Posted April 26, 2007 Share Posted April 26, 2007 Cascading Style Sheets (CSS) are your friend. Quote Link to comment https://forums.phpfreaks.com/topic/48803-simple-fix-alignment/#findComment-239171 Share on other sites More sharing options...
holz_bee Posted April 26, 2007 Author Share Posted April 26, 2007 ??? ??? lol i have no idea how to approch them! there must be a simple fix lol Quote Link to comment https://forums.phpfreaks.com/topic/48803-simple-fix-alignment/#findComment-239172 Share on other sites More sharing options...
taith Posted April 26, 2007 Share Posted April 26, 2007 <span style="width:100%; text-align:right;"></span> Quote Link to comment https://forums.phpfreaks.com/topic/48803-simple-fix-alignment/#findComment-239177 Share on other sites More sharing options...
holz_bee Posted April 26, 2007 Author Share Posted April 26, 2007 i keep getting that dreaded white screen! im obviously putting it in the wrong place and not in the right commas! echo("<div> <B>Title</b>")<span style="width:100%; text-align:right;">; echo("$row["Title"]")</span>; ^^^^^just so we know that doesnt work lol ??? Quote Link to comment https://forums.phpfreaks.com/topic/48803-simple-fix-alignment/#findComment-239181 Share on other sites More sharing options...
taith Posted April 26, 2007 Share Posted April 26, 2007 echo '<div> <B>Title</b><span style="width:100%; text-align:right;">'.$row['Title'].'</span>'; Quote Link to comment https://forums.phpfreaks.com/topic/48803-simple-fix-alignment/#findComment-239184 Share on other sites More sharing options...
holz_bee Posted April 26, 2007 Author Share Posted April 26, 2007 i have got it to work but the text is on different lines! is there a way around this? Quote Link to comment https://forums.phpfreaks.com/topic/48803-simple-fix-alignment/#findComment-239196 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.