networkthis Posted May 11, 2008 Share Posted May 11, 2008 Sometimes you forget the simple stuff.... I am trying to simply embed css style into my php...but I can't remember the proper quotations to embed the styles directly... example I want to take something as simple as this.... <p style="background:#FFFFFF;">Example Text</p> <?php '<p style=/"background:#FFFFFF;/">Example Text</p>' ?> Doesn't work.... Your help is greatly appreciated Link to comment https://forums.phpfreaks.com/topic/105099-solved-simple-cssphp-stuff/ Share on other sites More sharing options...
DarkWater Posted May 11, 2008 Share Posted May 11, 2008 <?php '<p style="background:#FFFFFF;">Example Text</p>' ?> O_o Link to comment https://forums.phpfreaks.com/topic/105099-solved-simple-cssphp-stuff/#findComment-538045 Share on other sites More sharing options...
dezkit Posted May 11, 2008 Share Posted May 11, 2008 <?php echo "<p style='background:#FFFFFF;'>Example Text</p>"; ?> Link to comment https://forums.phpfreaks.com/topic/105099-solved-simple-cssphp-stuff/#findComment-538046 Share on other sites More sharing options...
networkthis Posted May 11, 2008 Author Share Posted May 11, 2008 Thanks everyone, I really feel dumb now, because I tried that both ways, I was really discouraged when I tried those and neither showed the bgcolor at first........Of course it helps if I didn't have white on WHITE!!!!! I seriously thought I was loosing my mind....bg was supposed to be gray!!!!!!!! Thanks for making me realize I'm not totally going insane. Thanks again!!!!!!!!! Link to comment https://forums.phpfreaks.com/topic/105099-solved-simple-cssphp-stuff/#findComment-538047 Share on other sites More sharing options...
DarkWater Posted May 11, 2008 Share Posted May 11, 2008 Ahahaha. Glad we could help. (Off-topic: How did I miss the fact that echo wasn't there?) Link to comment https://forums.phpfreaks.com/topic/105099-solved-simple-cssphp-stuff/#findComment-538049 Share on other sites More sharing options...
networkthis Posted May 11, 2008 Author Share Posted May 11, 2008 Thats alright, I had the echo there in the code on my screen, I have been doing more and more complex code and it seems like the little stuff will get me once in a while!!! Link to comment https://forums.phpfreaks.com/topic/105099-solved-simple-cssphp-stuff/#findComment-538051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.