harlequin2k6 Posted May 22, 2006 Share Posted May 22, 2006 so this would be the line of code I'm talking about:[code] echo "<li>" . $row['BoardMemberName'] . $row['BoardMemberTerm'] . $row['BoardMemberElection'] . "</li>";[/code]and if you look at this [a href=\"http://test.suncoastusbcba.org/board.php\" target=\"_blank\"]page[/a] you'll see what I mean about wanting to format it - there's no spacing between any of the fields so unless you know what it is that you're reading it's really not going to make any senseany help would be greatly appreciated Quote Link to comment https://forums.phpfreaks.com/topic/10152-php-and-css/ Share on other sites More sharing options...
trq Posted May 22, 2006 Share Posted May 22, 2006 can you format your question a little clearer? I have no idea what your talking about. Quote Link to comment https://forums.phpfreaks.com/topic/10152-php-and-css/#findComment-37834 Share on other sites More sharing options...
.josh Posted May 22, 2006 Share Posted May 22, 2006 the value of $row['...'] is just like, text right? so wouldn't you just be applying normal css rules to it, like to your <li> tags or something? maybe throw in a br tag in your loop? i don't really see how this is a php question. yes, be more specific in your question. Quote Link to comment https://forums.phpfreaks.com/topic/10152-php-and-css/#findComment-37838 Share on other sites More sharing options...
AndyB Posted May 22, 2006 Share Posted May 22, 2006 For example, this would add spaces between the fields. What you do is up to you:[code]echo "<li>" . $row['BoardMemberName'] . " ". $row['BoardMemberTerm'] . " ".$row['BoardMemberElection'] . "</li>";[/code] Quote Link to comment https://forums.phpfreaks.com/topic/10152-php-and-css/#findComment-37841 Share on other sites More sharing options...
harlequin2k6 Posted May 22, 2006 Author Share Posted May 22, 2006 I apologize that my question was so unclear...my inexperience with php is really causing me some trouble...I even tried to go through the explanation again and couldn't make it come out any clearer [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /] but this is what I finally came up with which is what I was looking for[code]echo "<div class=\"boardmembername\">" . $row['BoardMemberName'] . "</div>" . "<div class=\"boardmemberterm\">" . $row['BoardMemberTerm'] . "</div>" . "<div class=\"boardmemberelection\">" . $row['BoardMemberElection'] . "</div>";[/code]I was not grasping the fact that the "." is a string concantenator (sp?)all that I was trying to achieve can been seen here with the [a href=\"http://test.suncoastusbcba.org/board.php\" target=\"_blank\"]"Directors"[/a] section Quote Link to comment https://forums.phpfreaks.com/topic/10152-php-and-css/#findComment-37843 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.