Title: Difficulty Changing Font Size through CSS
Last modified: August 21, 2016

---

# Difficulty Changing Font Size through CSS

 *  [jaxnnux](https://wordpress.org/support/users/jaxnnux/)
 * (@jaxnnux)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/difficulty-changing-font-size-through-css/)
 * Hello,
 * I’m trying to change the font size of my <p> to no avail. It seems like this 
   should be easy, but o well.
 * Anyways, the page in question is here:
 * [http://www.drgoodvet.com/pet-pharmacy/](http://www.drgoodvet.com/pet-pharmacy/)
 * I’m trying to increase the size of <p> to 22px;
 * Also, I can’t determine where the CSS is coming from to make the font-size so
   small for <p>. Using Firebug (firefox) and/or Chrome’s Developer Tool, I just
   can’t find the rule that specifies the CSS’s font size.
 * My CSS (I’ve tried various configurations here):
 *     ```
       .entry .largetext p { font-size:22px;}
       .largetext p { font-size:22px!important;}
       .largetext p { font-size:22px;}
       ```
   
 * My HTML:
 * `<p class="largetext">We provide an <a href="http://drgoodvet.vetsfirstchoice.
   com/" target="_blank">Online Pet Pharmacy</a> fulfilled by our veterinary clinic
   where you can purchase your pet's medications with confidence. All of our medications
   are guaranteed to be authentic, drug company products. There are no counterfeits
   here! Our Pet Pharmacy can be your one-stop shop for all of your pet's medication
   needs, including:</p>`

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

 *  Thread Starter [jaxnnux](https://wordpress.org/support/users/jaxnnux/)
 * (@jaxnnux)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/difficulty-changing-font-size-through-css/#post-4768641)
 * Please help!
 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/difficulty-changing-font-size-through-css/#post-4768667)
 * It looks like you have your CSS rules incorrect. `.largetext p {}` means that
   the rule will apply to any `<p>` tag contained within any element with the class`
   largetext`. If you want to apply a rule to any `<p>` tag with the class `largetext`,
   the rule would be `p.largetext {}`, or if you wanted to apply a rule to any element
   with the class `largetext`, the rule would be `.largetext {}`.
 * For more information about CSS selectors: [https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Selectors](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Selectors)

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

The topic ‘Difficulty Changing Font Size through CSS’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/difficulty-changing-font-size-through-css/#post-4768667)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
