Jump to content

Recommended Posts

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?

post-112009-13482403159038_thumb.jpg

post-112009-13482403159075_thumb.jpg

Link to comment
https://forums.phpfreaks.com/topic/254633-add-text-to-my-image/
Share on other sites

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>

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.