Increase size of paragraph for one page – Home instead of all

  • Author
    Posts
  • #1037422

    Hi Guys,

    Newbie here again. I am using the below code as I am wanting my home page first paragraph to be larger then the rest of my font. However with this code it’s making ALL of my pages first paragraph’s be this size. Is there any code to distinguish the pages?? Thanks

    #content p:first-child {font-size: 110%;}

    Also does anyone know how to increase the size of a sentence only on a particular page. It’s driving me nuts. Thanks

    The blog I need help with is instinctiveminds.com.au.

    #1037674

    Is there any code to distinguish the pages?? Thanks

    Yes, add “.home” to the beginning of the selector (right before “#content”).

    #1037675

    Also does anyone know how to increase the size of a sentence only on a particular page.

    You should do that from the HTML editor. Here is an example:

    <span style="font-size: 150%;">This sentence should be BIGGER!</span>

    #1037685

    Designsimply thank you so much. It was doing my head in. Made more frustrating as I knew it would be a simple code, as you have shown. Once again a big thank you.

The topic ‘Increase size of paragraph for one page – Home instead of all’ is closed to new replies.