Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

font style

Featured Replies

Please see the attache image. How do I use css to design this font. I try to use text-shadow but I can't add the correct border around the font.

 

thanks for the help

post-37285-0-71526200-1343828498_thumb.png

You may not have much luck recreating the effect on this font using CSS alone. I'm pretty sure the text effect in the image you provided was done using a graphics program. There is in fact a CSS property for adding a stroke to text, but it currently only functions in 2 browsers, making it unreliable.

 

Having said that, I can think of a way to accomplish this effect using two absolutely positioned divs on top of one another with a shadow effect behind one of them, but in no way would I recommend doing this

Edited by Pete Prosper

It can be done with CSS, however there is a catch..

 

The shadow effect for text only works with Firefox and Chrome web browsers (don't know about Safari), IE9 does not support this function yet. Demo page at Dynamic Drive Note: IE users will only see plain text

  • Author

hi, textshadow works. use 4 text-shadow create an border and use the fifth one to create a shadow,

 

text-shadow: 0 -2px #00468C, 2px 0 #00468C, 0 2px #00468C, -2px 0 #00468C, 3px 4px 7px gray;

 

 

add a blur parameter at the last one.

 

thanks,

 

Guys

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.