Title: CSS for a text
Last modified: November 23, 2023

---

# CSS for a text

 *  [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/css-for-a-text/)
 * I ‘d like to have the text on the right sidebar with a full border of the same
   size on all the sides of the letters, like here: [https://ibb.co/1nWdp9x](https://ibb.co/1nWdp9x),
   now I have a sort of shadow, how can I change that?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-for-a-text%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [WP Provider](https://wordpress.org/support/users/wpprovider/)
 * (@wpprovider)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/css-for-a-text/#post-17224702)
 * Hello Sacconi,
   You mean a text-shadow?That could be done by adding CSS like this:
   [https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow](https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow)
   _Example: text-shadow: 2px 1px 2px #289dcc_Or a border: [https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke)
 *  [David Arenas](https://wordpress.org/support/users/darerodz/)
 * (@darerodz)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/css-for-a-text/#post-17224755)
 * Hi, [@sacconi](https://wordpress.org/support/users/sacconi/). For your case, 
   I think it would be better to convert the text into an SVG element so you can
   use the `stroke` and the `stroke-width` properties in CSS, like in this [StackOverflow example](http://href.li/?https://stackoverflow.com/a/47208788).
 * Hope it helps!
 *  Thread Starter [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/css-for-a-text/#post-17224851)
 * It works also if I’m using gettext? Now my text comes from a shortcode with a
   gettexted element
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/css-for-a-text/#post-17228007)
 * CSS can be applied to text regardless of what language the text represents. Gettext
   cannot be used if the words are in any graphic format like SVG, JPEG, WEBP, etc.
   However, you could configure your shortcode to return different SVG elements 
   depending upon locale. This would only be practical if your site only supports
   a limited number of languages, which I know is your situation.
 * Different SVG elements would be conceptually similar to specifying different 
   complete images, each of which contains words in a different language. However,
   SVG based words would be technically superior to words within a JPEG or PNG image.
   But gettext still cannot be used with any graphic element.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CSS for a text’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 4 replies
 * 4 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/css-for-a-text/#post-17228007)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
