php_begins Posted January 9, 2012 Share Posted January 9, 2012 I have two images below. One image is already created with the text 'home' inside it and the other one nothing in it. I want to add text manually to the the empty one that looks like the home.jpg.. for example i want to add the text 'About' that has the same font as 'home'. Can someone help me with the css? Quote Link to comment https://forums.phpfreaks.com/topic/254633-add-text-to-my-image/ Share on other sites More sharing options...
php_begins Posted January 9, 2012 Author Share Posted January 9, 2012 This is what i did. is it possible to find out the exact font type,size of the image that has 'home' printed on it?i do not have photoshop or any other software.. <style type="text/css"> ul { padding:0; margin:0; list-style-type:none; } ul a { display:block; width:125px; line-height:22px; font-family:arial,sans-serif; font-size:14px; font-weight:bold; color:#fff; text-decoration:none; text-align:center; background-image:url(http://www.codingforums.com/attachment.php?attachmentid=10695&d=1326090443); } </style> </head> <body> <ul> <li><a href="#">ABOUT</a></li> </ul> Quote Link to comment https://forums.phpfreaks.com/topic/254633-add-text-to-my-image/#findComment-1305873 Share on other sites More sharing options...
deathadder Posted January 10, 2012 Share Posted January 10, 2012 you would need to know the name of the font, download the font upload the font to wherever your hosting your website and update the font in your css file, i have no idea what font that is, though it looks very familiar now i look at it again i can see that the text is only white with a black outline not saying that helps but if you can find a similar font and add a black border you might be ready to go. Quote Link to comment https://forums.phpfreaks.com/topic/254633-add-text-to-my-image/#findComment-1306086 Share on other sites More sharing options...
Sharpie Posted January 12, 2012 Share Posted January 12, 2012 I would use the font squirrel service to try and build the outline font and import with an @font-face (defaulting to a similar easy to read font, if your custom can't be loaded) if you want it to deprecate gracefully. Otherwise, you can import the font as is and rely on CSS3's shadow property to create an outline. Quote Link to comment https://forums.phpfreaks.com/topic/254633-add-text-to-my-image/#findComment-1306776 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.