---
title: "CSS text styling"  
description: "CSS text styling"  
author: "Anonymous User"  
published: 2013-08-19  
updated: 2013-08-19  
canonical: https://www.mindstick.com/forum/1411/css-text-styling  
category: "css-css3"  
tags: ["css-css3"]  
reading_time: 1 minute  

---

# CSS text styling

Hi !

Is there a way to [style](https://www.mindstick.com/articles/126300/apa-citation-style-get-to-know-about-it-for-your-next-assignment) the first [word](https://www.mindstick.com/forum/305/read-word-file) in tag differently than the other words in that tag? For example, [say](https://answers.mindstick.com/qa/116645/a1-wreckers-reviews-what-do-customers-say) I had this snippet of [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii):

<h4>Worpress Quick [Tip](https://www.mindstick.com/articles/23310/can-we-buy-android-tablet-for-less-than-200) Of The Week</h4>

Is there way I could style the word "[Wordpress](https://www.mindstick.com/articles/12248/franco-elegant-woocommerce-wordpress-theme)" differently than the other words using [css](https://www.mindstick.com/forum/514/background-gradient-ie7-css-problem)? I know I could just [put](https://answers.mindstick.com/qa/111890/can-you-explain-the-difference-between-put-and-post-http-methods) a span with a [unique](https://www.mindstick.com/blog/12870/how-to-be-unique-in-business) [class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp) around the word Wordpress, but is it possible without doing that?

Thanks

## Replies

### Reply by shreesh chandra shukla

Hi!

There is no :first-word selector unfortunately. You can take a look at this script though that implements it by adding the firstWord class to, well, the first word.

span.firstWord {

font-weight:bold;

text-decoration: underline;

}

\

##


---

Original Source: https://www.mindstick.com/forum/1411/css-text-styling

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
