Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #896995
    highlandadventures
    Participant

    Hi…I am trying to control the format of a selected number of paragraph items (NOT all paragraphs). How can I create a CSS to make the font 10px for a selected paragraphs. Right now I am using iline <p style=”font-size:20px; margin-top:30px”> but I want to control this from a single point vis CSS. I though of creating a class element, but I don’t know how to call the element from an inline code.

    I am trying to apply this to the the PRICE PER PERSON, WHAT IS INCLUDED and NOT INCLUDED under the PRICE tab on page http://galapagos.tours/inca-trail-tours/la-pata/…if you inspect the page, you will notice the inline <p style=”font-size:20px; margin-top:30px”>…How can we control this from a CSS and what do we write in the inline code to call the CSS element?

    Thanks.

    #897935
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Upon checking all those 3 keywords you have pointed out, you have something like this: <p class="hometown">PRICE PER PERSON</p>. It seems you are using a class. You can make sue of this css then so that you can control it without adding any inline css.

    .hometown {
      font-size: 10px; 
      margin-top: 15px;
    }

    Hope this helps. Please let us know how it goes.

    #897963
    highlandadventures
    Participant

    do i need to have the letter ‘p’ before the name of the class…like p.hometown or just .hometown.

    #897965
    highlandadventures
    Participant

    i figure it out…thanks.

    #898415
    Zeshan
    Member

    Glad to hear you’ve figured it out! 🙂 Have a good day.

  • <script> jQuery(function($){ $("#no-reply-896995 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>