seany123 Posted April 18, 2009 Share Posted April 18, 2009 i was wondering if its possible to echo values from my database such as $player->username as a gradient color. Quote Link to comment https://forums.phpfreaks.com/topic/154670-echoing-values-from-database-with-gradient-color/ Share on other sites More sharing options...
soak Posted April 18, 2009 Share Posted April 18, 2009 Do you mean dependent on some other user value like score or all the same but with a gradient? Can you give a bit more detail on what you're trying to achieve? Quote Link to comment https://forums.phpfreaks.com/topic/154670-echoing-values-from-database-with-gradient-color/#findComment-813352 Share on other sites More sharing options...
seany123 Posted April 30, 2009 Author Share Posted April 30, 2009 I would like it so members can change their name color.. so it displays gradient color Quote Link to comment https://forums.phpfreaks.com/topic/154670-echoing-values-from-database-with-gradient-color/#findComment-823039 Share on other sites More sharing options...
JasonLewis Posted May 1, 2009 Share Posted May 1, 2009 So that each letter is a different color or just so the name is a different color? Quote Link to comment https://forums.phpfreaks.com/topic/154670-echoing-values-from-database-with-gradient-color/#findComment-823198 Share on other sites More sharing options...
mikesta707 Posted May 1, 2009 Share Posted May 1, 2009 that is more CSS than PHP. I dont think you could make words have a gradient with PHP, but I'm sure there is a way to gradient text with CSS. try googling css gradient text tutorial. there are tons hope that helps! Quote Link to comment https://forums.phpfreaks.com/topic/154670-echoing-values-from-database-with-gradient-color/#findComment-823218 Share on other sites More sharing options...
laffin Posted May 1, 2009 Share Posted May 1, 2009 U shud be able to do it in php. Question is how is the gradiant supposed to appear. u can use some inline .css to make user selectable gradiants which would be good for a background. or if ya want to be a real pain and do individual characters from a string (font text gradiant). Quote Link to comment https://forums.phpfreaks.com/topic/154670-echoing-values-from-database-with-gradient-color/#findComment-823223 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.