Dave Posted December 13, 2009 Posted December 13, 2009 Hey, I'm making a new script with PHP and I was searching around on the internet for GD and Drop shadow (On text). Sadly I've managed not to find anything so i was wondering do any of the users on here know of any way to do this? Or if it's completely un-doable. Thanks, Dave. Quote
Dayo Posted December 13, 2009 Posted December 13, 2009 what like this <head> <style type="text/css"> <!-- #test { text-shadow: #FF0000 4px 4px 2px; } --> </style></head> <body> <div id="test">lol</div> </body> Quote
Dave Posted December 13, 2009 Author Posted December 13, 2009 That my friend is CSS :P what like this <head> <style type="text/css"> <!-- #test { text-shadow: #FF0000 4px 4px 2px; } --> </style></head> <body> <div id="test">lol</div> </body> Quote
Zeggy Posted December 13, 2009 Posted December 13, 2009 Dunno if this might help, just a result from a quick google search: http://www.codewalkers.com/c/a/Miscellaneous/Adding-Drop-Shadows-with-PHP/ Otherwise, here's how it could be done: Make a copy of the text but make it completely black (or whatever colour you want the shadow to be), and simply offset the position of the shadow text by 2 or 3 pixels underneath the original text. Quote
Dayo Posted December 14, 2009 Posted December 14, 2009 Lol sorry I completly moss read ignore my post :p Quote
Gucci Mane Posted December 14, 2009 Posted December 14, 2009 text shadow is done in GRAFX And you can not style stuff with PHP hence the making of CSS Quote
Kasabian Posted December 14, 2009 Posted December 14, 2009 I think some of you need to start reading the topic correctly before posting. I cant find anything but this little case study that someone has done on Effects with GD: Case study that has a little bit of code under Drop Shadow, i havent tryed it though. Hope this helps Quote
Djkanna Posted December 15, 2009 Posted December 15, 2009 Wouldn't it be easier to do it with CSS? @ Kasabian: Gotta love the signature :thumbsup: Quote
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.