jassikundi Posted March 9, 2008 Share Posted March 9, 2008 Hi poeple, i'm kinda stuck on applying styles to my php code. I've applied styles to everything that can be displayed via dreamweaver's design interface and attached a css to some of the text. However how do I format text that is echoed? For example the code below: [pre]echo "<h1>User Account Edit Success!</h1>"; echo "<p><b>$session->username</b>, your account has been successfully updated. " ."<a href=\"main.php\">Main</a>.</p>";[/pre] I would like to add a different colour and font. that's about it really. Thanks. Quote Link to comment Share on other sites More sharing options...
haku Posted March 9, 2008 Share Posted March 9, 2008 This is a CSS issue, not a PHP one, but you can do it like this: echo "<p><span class="someclass">$session->username</span>, your account has been successfully updated.<a href=\"main.php\">Main[/url].</p>"; And then write out your CSS class rules for .someclass 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.